1
mirror of https://github.com/mpv-player/mpv synced 2024-10-18 10:25:02 +02:00

Partially revert 1.140, restoring the old behaviour for all codecs

except for twos and sowt.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18219 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rtognimp 2006-04-23 11:38:06 +00:00
parent e1f05848d4
commit c96851a3f0

View File

@ -1911,9 +1911,12 @@ if(trak->samplesize){
{
mp_msg(MSGT_DEMUX, MSGL_DBG2, "WARNING! Samplesize(%d) != 1\n",
trak->samplesize);
// x=trak->chunks[trak->pos].size*trak->samplesize;
if((trak->fourcc != MOV_FOURCC('t','w','o','s')) && (trak->fourcc != MOV_FOURCC('s','o','w','t')))
x=trak->chunks[trak->pos].size*trak->samplesize;
else
x=trak->chunks[trak->pos].size;
}
// else
else
x=trak->chunks[trak->pos].size;
// printf("X = %d\n", x);
/* the following stuff is audio related */