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:
arpi 2002-04-15 01:58:18 +00:00
parent f3d7b72f6c
commit 853ab80ca3
1 changed files with 6 additions and 2 deletions

View File

@ -885,6 +885,10 @@ 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);