summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-14 23:40:14 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-14 23:40:14 +0200
commita63d7213b3eb96a35fdf34b05f45e5675107d8f9 (patch)
treeaa5fca870f7dff1c84fec40fa909d2b0938919fa /ffplay.c
parentbc077ca6b5f8bb3afdc557f29468aed956012d3d (diff)
ffplay: Prevent 0/0 aspect from being passed on to lavfi
0/0 fails to be parsed Fixes Ticket1814 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffplay.c b/ffplay.c
index 5a2c7728fc..4223102862 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1614,7 +1614,7 @@ static int configure_video_filters(AVFilterGraph *graph, VideoState *is, const c
"video_size=%dx%d:pix_fmt=%d:time_base=%d/%d:pixel_aspect=%d/%d",
codec->width, codec->height, codec->pix_fmt,
is->video_st->time_base.num, is->video_st->time_base.den,
- codec->sample_aspect_ratio.num, codec->sample_aspect_ratio.den);
+ codec->sample_aspect_ratio.num, FFMAX(codec->sample_aspect_ratio.den, 1));
if ((ret = avfilter_graph_create_filter(&filt_src,
avfilter_get_by_name("buffer"),