changeset 15569:dff7e79b194f

quicktime fix update - check for existence of sh->ImageDesc instead of h263 fourcc - honor -lavdopts lowres
author henry
date Wed, 25 May 2005 16:29:53 +0000
parents 6825cbde2df6
children f197f4a60b20
files libmpcodecs/vd_ffmpeg.c
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Wed May 25 11:48:58 2005 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Wed May 25 16:29:53 2005 +0000
@@ -471,9 +471,13 @@
 
     width = avctx->width;
     height = avctx->height;
-    if (sh->bih && sh->format == mmioFOURCC('h','2','6','3')) {
-	width = sh->bih->biWidth;
-	height = sh->bih->biHeight;
+
+    // HACK!
+    // if sh->ImageDesc is non-NULL, it means we decode QuickTime(tm) video.
+    // use dimensions from BIH to avoid black borders at the right and bottom.
+    if (sh->bih && sh->ImageDesc) {
+	width = sh->bih->biWidth>>lavc_param_lowres;
+	height = sh->bih->biHeight>>lavc_param_lowres;
     }
     
      // it is possible another vo buffers to be used after vo config()