Index: libmpcodecs/vd_ffmpeg.c =================================================================== --- libmpcodecs/vd_ffmpeg.c (revision 24060) +++ libmpcodecs/vd_ffmpeg.c (working copy) @@ -488,9 +488,9 @@ height = avctx->height; // HACK! - // if sh->ImageDesc is non-NULL, it means we decode QuickTime(tm) video. + // some h263 encoded videos have incorrect dimensions in the picture header // use dimensions from BIH to avoid black borders at the right and bottom. - if (sh->bih && sh->ImageDesc) { + if (sh->bih && sh->format == mmioFOURCC('h','2','6','3')) { width = sh->bih->biWidth>>lavc_param_lowres; height = sh->bih->biHeight>>lavc_param_lowres; }