# HG changeset patch # User henry # Date 1117038593 0 # Node ID dff7e79b194fb0ed5e1594b62c9d7ef5247b9245 # Parent 6825cbde2df65101207eab95acf2a9a2edce4a89 quicktime fix update - check for existence of sh->ImageDesc instead of h263 fourcc - honor -lavdopts lowres diff -r 6825cbde2df6 -r dff7e79b194f libmpcodecs/vd_ffmpeg.c --- 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()