mirror of https://github.com/mpv-player/mpv
quicktime fix update
- check for existence of sh->ImageDesc instead of h263 fourcc - honor -lavdopts lowres git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15570 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
3c9ef55e0a
commit
8da4f67d76
|
@ -471,9 +471,13 @@ static int init_vo(sh_video_t *sh, enum PixelFormat pix_fmt){
|
|||
|
||||
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()
|
||||
|
|
Loading…
Reference in New Issue