From eae983f4ff683f75386732eaa0537aaa7c05ff39 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 9 Jun 2012 13:59:00 +0200 Subject: [PATCH] ffmpeg: fix fate breakage introduced by key=value buffersrc args. Signed-off-by: Michael Niedermayer --- ffmpeg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ffmpeg.c b/ffmpeg.c index 4fed76fe55..6868a1db91 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:"