diff options
author | Martin Storsjö <martin@martin.st> | 2014-07-06 23:18:27 +0300 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2014-07-27 10:14:33 -0400 |
commit | 407912d17870a53e8a8cc072f192cadf358bc155 (patch) | |
tree | 13d0065be1163dd55c87c7523cceea03a2a039d6 | |
parent | 12bbd819cbdfdd2b41286c5ccabee7f5e5b6612a (diff) | |
download | ffmpeg-407912d17870a53e8a8cc072f192cadf358bc155.tar.gz |
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>
(cherry picked from commit cf280ed004b5c618560f8f43d14ff264bd1e4c3d)
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
-rw-r--r-- | avplay.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |