ffmpeg: fix fate breakage introduced by key=value buffersrc args.
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 9 Jun 2012 11:59:00 +0000 (13:59 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 9 Jun 2012 12:02:27 +0000 (14:02 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c

index 4fed76f..6868a1d 100644 (file)
--- 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:"