mirror of https://github.com/mpv-player/mpv
do not attempt to seek backward in stream on MDPR chunk with no codec data
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12993 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d206d01e84
commit
2594c8a462
|
@ -1044,6 +1044,11 @@ void demux_open_real(demuxer_t* demuxer)
|
|||
codec_data_size = stream_read_dword(demuxer->stream);
|
||||
codec_pos = stream_tell(demuxer->stream);
|
||||
|
||||
if (!codec_data_size) {
|
||||
mp_msg(MSGT_DEMUX,MSGL_DBG2,"demux_real: no codec data in MDPR chunk at fpos=0x%X\n", codec_pos);
|
||||
break;
|
||||
}
|
||||
|
||||
tmp = stream_read_dword(demuxer->stream);
|
||||
|
||||
mp_msg(MSGT_DEMUX,MSGL_DBG2,"demux_real: type_spec: len=%d fpos=0x%X first_dword=0x%X (%.4s) \n",
|
||||
|
|
Loading…
Reference in New Issue