0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

Fix passing qdm2 extradata to lavc decoder

It was broken in rev 1.142, that code does not behave the same as the
old one in some cases


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17983 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rtognimp 2006-03-27 21:37:18 +00:00
parent 3256ed536d
commit 9c2deb1452

View File

@ -745,7 +745,11 @@ static void lschunks(demuxer_t* demuxer,int level,off_t endpos,mov_track_t* trak
mp_msg(MSGT_DEMUX, MSGL_V, "MOV: Found little endian PCM data, reversed fourcc:%04x\n", sh->format);
}
break;
default: break;
default:
if (len > 8 && len + 44 <= trak->stdata_len) {
sh->codecdata_len = len-8;
sh->codecdata = trak->stdata+44+8;
}
}
} else {
if (len > 8 && len + 44 <= trak->stdata_len) {