Browse Source

avplay: Handle pixel aspect ratio properly

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

CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
tags/n2.3
Martin Storsjö 11 years ago
parent
commit
cf280ed004
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      avplay.c

+ 2
- 0
avplay.c View File

@@ -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


Loading…
Cancel
Save