0/0 fails to be parsed
Fixes Ticket1814
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
... | ... |
@@ -1614,7 +1614,7 @@ static int configure_video_filters(AVFilterGraph *graph, VideoState *is, const c |
1614 | 1614 |
"video_size=%dx%d:pix_fmt=%d:time_base=%d/%d:pixel_aspect=%d/%d", |
1615 | 1615 |
codec->width, codec->height, codec->pix_fmt, |
1616 | 1616 |
is->video_st->time_base.num, is->video_st->time_base.den, |
1617 |
- codec->sample_aspect_ratio.num, codec->sample_aspect_ratio.den); |
|
1617 |
+ codec->sample_aspect_ratio.num, FFMAX(codec->sample_aspect_ratio.den, 1)); |
|
1618 | 1618 |
|
1619 | 1619 |
if ((ret = avfilter_graph_create_filter(&filt_src, |
1620 | 1620 |
avfilter_get_by_name("buffer"), |