[FFmpeg-cvslog] avformat/nullenc: mark null as VFPS

Michael Niedermayer git at videolan.org
Wed Nov 13 23:05:37 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Nov 13 22:56:18 2013 +0100| [4abe6e415310e63d64c3a370c15d410d2050ca2a] | committer: Michael Niedermayer

avformat/nullenc: mark null as VFPS

This avoids frame duplication for null output
avoiding unneeded computations.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4abe6e415310e63d64c3a370c15d410d2050ca2a
---

 libavformat/nullenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/nullenc.c b/libavformat/nullenc.c
index 7da297b..7c08c39 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,
 };



More information about the ffmpeg-cvslog mailing list