[FFmpeg-cvslog] ffmpeg: fix fate breakage introduced by key=value buffersrc args.

Michael Niedermayer git at videolan.org
Sat Jun 9 14:02:57 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jun  9 13:59:00 2012 +0200| [eae983f4ff683f75386732eaa0537aaa7c05ff39] | committer: Michael Niedermayer

ffmpeg: fix fate breakage introduced by key=value buffersrc args.

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

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

 ffmpeg.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/ffmpeg.c b/ffmpeg.c
index 4fed76f..6868a1d 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -995,6 +995,8 @@ static int configure_input_video_filter(FilterGraph *fg, InputFilter *ifilter,
     sar = ist->st->sample_aspect_ratio.num ?
           ist->st->sample_aspect_ratio :
           ist->st->codec->sample_aspect_ratio;
+    if(!sar.den)
+        sar = (AVRational){0,1};
     av_bprint_init(&args, 0, 1);
     av_bprintf(&args,
              "video_size=%dx%d:pix_fmt=%d:time_base=%d/%d:"



More information about the ffmpeg-cvslog mailing list