From cf280ed004b5c618560f8f43d14ff264bd1e4c3d Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Sun, 6 Jul 2014 23:18:27 +0300 Subject: avplay: Handle pixel aspect ratio properly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was broken (left half-implemented) in 354468fc12. CC: libav-stable@libav.org Signed-off-by: Martin Storsjö --- avplay.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'avplay.c') diff --git a/avplay.c b/avplay.c index b70ee54c7b..2db892849b 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 -- cgit v1.2.3