avformat/nullenc: mark null as VFPS
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 13 Nov 2013 21:56:18 +0000 (22:56 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 13 Nov 2013 21:56:18 +0000 (22:56 +0100)
This avoids frame duplication for null output
avoiding unneeded computations.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/nullenc.c

index 7da297b..7c08c39 100644 (file)
@@ -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,
 };