avplay: Handle pixel aspect ratio properly
This was broken (left half-implemented) in354468fc12. CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st> (cherry picked from commitcf280ed004) Signed-off-by: Reinhard Tartler <siretart@tauware.de>
This commit is contained in:
committed by
Reinhard Tartler
parent
12bbd819cb
commit
407912d178
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user