Mercurial > libavformat.hg
comparison flvdec.c @ 3611:2a7f495e8c56 libavformat
skip flv video info / command frame packets, fix issue #546
author | bcoudurier |
---|---|
date | Thu, 31 Jul 2008 02:26:40 +0000 |
parents | 7a0230981402 |
children | ccddbe22fa8f |
comparison
equal
deleted
inserted
replaced
3610:71ce7d228291 | 3611:2a7f495e8c56 |
---|---|
322 is_audio=1; | 322 is_audio=1; |
323 flags = get_byte(s->pb); | 323 flags = get_byte(s->pb); |
324 } else if (type == FLV_TAG_TYPE_VIDEO) { | 324 } else if (type == FLV_TAG_TYPE_VIDEO) { |
325 is_audio=0; | 325 is_audio=0; |
326 flags = get_byte(s->pb); | 326 flags = get_byte(s->pb); |
327 if ((flags & 0xf0) == 0x50) { /* video info / command frame */ | |
328 url_fskip(s->pb, size - 1); | |
329 continue; | |
330 } | |
327 } else { | 331 } else { |
328 if (type == FLV_TAG_TYPE_META && size > 13+1+4) | 332 if (type == FLV_TAG_TYPE_META && size > 13+1+4) |
329 flv_read_metabody(s, next); | 333 flv_read_metabody(s, next); |
330 else /* skip packet */ | 334 else /* skip packet */ |
331 av_log(s, AV_LOG_ERROR, "skipping flv packet: type %d, size %d, flags %d\n", type, size, flags); | 335 av_log(s, AV_LOG_ERROR, "skipping flv packet: type %d, size %d, flags %d\n", type, size, flags); |