[FFmpeg-cvslog] avplay: Handle pixel aspect ratio properly

Martin Storsjö git at videolan.org
Tue Jul 8 21:52:17 CEST 2014


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Sun Jul  6 23:18:27 2014 +0300| [cf280ed004b5c618560f8f43d14ff264bd1e4c3d] | committer: Martin Storsjö

avplay: Handle pixel aspect ratio properly

This was broken (left half-implemented) in 354468fc12.

CC: libav-stable at libav.org
Signed-off-by: Martin Storsjö <martin at martin.st>

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

 avplay.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/avplay.c b/avplay.c
index b70ee54..2db8928 100644
--- a/avplay.c
+++ b/avplay.c
@@ -1323,6 +1323,8 @@ static int queue_picture(VideoState *is, AVFrame *src_frame, double pts, int64_t
 
     vp = &is->pictq[is->pictq_windex];
 
+    vp->sar = src_frame->sample_aspect_ratio;
+
     /* alloc or resize hardware picture buffer */
     if (!vp->bmp || vp->reallocate ||
 #if CONFIG_AVFILTER



More information about the ffmpeg-cvslog mailing list