changeset 5219:9a2e8b32db2a

10l ;)
author alex
date Wed, 20 Mar 2002 14:56:26 +0000
parents 11c7ccce8ae3
children 4afbe13150e6
files libmpcodecs/vd_ffmpeg.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Wed Mar 20 13:30:57 2002 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Wed Mar 20 14:56:26 2002 +0000
@@ -101,6 +101,9 @@
     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;
     }