[FFmpeg-cvslog] ffplay: Prevent 0/0 aspect from being passed on to lavfi

Michael Niedermayer git at videolan.org
Tue Dec 11 01:16:00 CET 2012


ffmpeg | branch: release/1.0 | Michael Niedermayer <michaelni at gmx.at> | Sun Oct 14 23:40:14 2012 +0200| [dad5b9560a5cf3f34ddbc1df1a8a18b07b0d24ac] | committer: Carl Eugen Hoyos

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 at gmx.at>
(cherry picked from commit a63d7213b3eb96a35fdf34b05f45e5675107d8f9)

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

 ffplay.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffplay.c b/ffplay.c
index 2337fe0..83bfd4e 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1617,7 +1617,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"),



More information about the ffmpeg-cvslog mailing list