Commit cf280ed0 authored by Martin Storsjö's avatar Martin Storsjö

avplay: Handle pixel aspect ratio properly

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

Signed-off-by: default avatarMartin Storsjö <>
parent 52a1c32c
......@@ -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 ||
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment