comparison libmpdemux/demux_real.c @ 12992:0945a0a7ed98

do not attempt to seek backward in stream on MDPR chunk with no codec data
author reimar
date Tue, 10 Aug 2004 20:13:44 +0000
parents 751a27fc8895
children 3041b42a82fd
comparison
equal deleted inserted replaced
12991:2d678d3c00fa 12992:0945a0a7ed98
1042 1042
1043 /* Type specific header */ 1043 /* Type specific header */
1044 codec_data_size = stream_read_dword(demuxer->stream); 1044 codec_data_size = stream_read_dword(demuxer->stream);
1045 codec_pos = stream_tell(demuxer->stream); 1045 codec_pos = stream_tell(demuxer->stream);
1046 1046
1047 if (!codec_data_size) {
1048 mp_msg(MSGT_DEMUX,MSGL_DBG2,"demux_real: no codec data in MDPR chunk at fpos=0x%X\n", codec_pos);
1049 break;
1050 }
1051
1047 tmp = stream_read_dword(demuxer->stream); 1052 tmp = stream_read_dword(demuxer->stream);
1048 1053
1049 mp_msg(MSGT_DEMUX,MSGL_DBG2,"demux_real: type_spec: len=%d fpos=0x%X first_dword=0x%X (%.4s) \n", 1054 mp_msg(MSGT_DEMUX,MSGL_DBG2,"demux_real: type_spec: len=%d fpos=0x%X first_dword=0x%X (%.4s) \n",
1050 (int)codec_data_size,(int)codec_pos,tmp,&tmp); 1055 (int)codec_data_size,(int)codec_pos,tmp,&tmp);
1051 1056