From 4abe6e415310e63d64c3a370c15d410d2050ca2a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 13 Nov 2013 22:56:18 +0100 Subject: [PATCH] avformat/nullenc: mark null as VFPS This avoids frame duplication for null output avoiding unneeded computations. Signed-off-by: Michael Niedermayer --- libavformat/nullenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/nullenc.c b/libavformat/nullenc.c index 7da297b63e..7c08c396e8 100644 --- a/libavformat/nullenc.c +++ b/libavformat/nullenc.c @@ -32,5 +32,5 @@ AVOutputFormat ff_null_muxer = { .audio_codec = AV_NE(AV_CODEC_ID_PCM_S16BE, AV_CODEC_ID_PCM_S16LE), .video_codec = AV_CODEC_ID_RAWVIDEO, .write_packet = null_write_packet, - .flags = AVFMT_NOFILE | AVFMT_NOTIMESTAMPS | AVFMT_RAWPICTURE, + .flags = AVFMT_VARIABLE_FPS | AVFMT_NOFILE | AVFMT_NOTIMESTAMPS | AVFMT_RAWPICTURE, };