Mercurial > libavformat.hg
comparison asf.c @ 1859:9bc07f90d4a2 libavformat
off by one error
author | michael |
---|---|
date | Mon, 05 Mar 2007 01:19:36 +0000 |
parents | bf6a0dd6d7be |
children | 6d2157d1fc93 |
comparison
equal
deleted
inserted
replaced
1858:7ce72baa2ce5 | 1859:9bc07f90d4a2 |
---|---|
247 if (type == CODEC_TYPE_AUDIO) { | 247 if (type == CODEC_TYPE_AUDIO) { |
248 get_wav_header(pb, st->codec, type_specific_size); | 248 get_wav_header(pb, st->codec, type_specific_size); |
249 st->need_parsing = 1; | 249 st->need_parsing = 1; |
250 /* We have to init the frame size at some point .... */ | 250 /* We have to init the frame size at some point .... */ |
251 pos2 = url_ftell(pb); | 251 pos2 = url_ftell(pb); |
252 if (gsize > (pos2 + 8 - pos1 + 24)) { | 252 if (gsize >= (pos2 + 8 - pos1 + 24)) { |
253 asf_st->ds_span = get_byte(pb); | 253 asf_st->ds_span = get_byte(pb); |
254 asf_st->ds_packet_size = get_le16(pb); | 254 asf_st->ds_packet_size = get_le16(pb); |
255 asf_st->ds_chunk_size = get_le16(pb); | 255 asf_st->ds_chunk_size = get_le16(pb); |
256 get_le16(pb); //ds_data_size | 256 get_le16(pb); //ds_data_size |
257 get_byte(pb); //ds_silence_data | 257 get_byte(pb); //ds_silence_data |