avformat/nullenc: Use ff_interleave_packet_passthrough()
It avoids the overhead of the packet list; furthermore, using ff_interleave_packet_per_dts() is wrong for the null muxer anyway, because said muxer accepts packets without timestamps, which ff_interleave_packet_per_dts() can't handle. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
52d13d54e1
commit
ce8f77a903
@ -20,6 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "avformat.h"
|
#include "avformat.h"
|
||||||
|
#include "internal.h"
|
||||||
|
|
||||||
static int null_write_packet(struct AVFormatContext *s, AVPacket *pkt)
|
static int null_write_packet(struct AVFormatContext *s, AVPacket *pkt)
|
||||||
{
|
{
|
||||||
@ -33,4 +34,5 @@ const AVOutputFormat ff_null_muxer = {
|
|||||||
.video_codec = AV_CODEC_ID_WRAPPED_AVFRAME,
|
.video_codec = AV_CODEC_ID_WRAPPED_AVFRAME,
|
||||||
.write_packet = null_write_packet,
|
.write_packet = null_write_packet,
|
||||||
.flags = AVFMT_VARIABLE_FPS | AVFMT_NOFILE | AVFMT_NOTIMESTAMPS,
|
.flags = AVFMT_VARIABLE_FPS | AVFMT_NOFILE | AVFMT_NOTIMESTAMPS,
|
||||||
|
.interleave_packet = ff_interleave_packet_passthrough,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user