mirror of https://github.com/mpv-player/mpv
get aspect info from display size if != real size
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5629 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f3d7b72f6c
commit
853ab80ca3
|
@ -885,8 +885,12 @@ static void lschunks(demuxer_t* demuxer,int level,off_t endpos,mov_track_t* trak
|
|||
if(!sh->disp_w && !sh->disp_h) {
|
||||
sh->disp_w=trak->tkdata[77]|(trak->tkdata[76]<<8);
|
||||
sh->disp_h=trak->tkdata[81]|(trak->tkdata[80]<<8);
|
||||
}
|
||||
|
||||
} else if(sh->disp_w!=(trak->tkdata[77]|(trak->tkdata[76]<<8))){
|
||||
// codec and display width differ... use display one for aspect
|
||||
sh->aspect=trak->tkdata[77]|(trak->tkdata[76]<<8);
|
||||
sh->aspect/=trak->tkdata[81]|(trak->tkdata[80]<<8);
|
||||
}
|
||||
|
||||
if(depth&(~15)) printf("*** depht = 0x%X\n",depth);
|
||||
|
||||
// palettized?
|
||||
|
|
Loading…
Reference in New Issue