summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmpcodecs/vd_ffmpeg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c
index e0d8ae7572..ea5247bd6b 100644
--- a/libmpcodecs/vd_ffmpeg.c
+++ b/libmpcodecs/vd_ffmpeg.c
@@ -101,6 +101,9 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){
if ((ctx->width != sh->disp_w) ||
(ctx->height != sh->disp_h))
{
+ /* and what about the sh->bih (BitmapInfoHeader) width/height values? */
+ sh->disp_w = ctx->width;
+ sh->disp_h = ctx->height;
if (mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_YV12))
return NULL;
}