diff libmpcodecs/vd_ffmpeg.c @ 5219:9a2e8b32db2a

10l ;)
author alex
date Wed, 20 Mar 2002 14:56:26 +0000
parents d337cc4ab0ee
children ea8f3e8f39c1
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;
     }