mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-19 22:01:00 +00:00
dont skip too many bytes if tag is TAG_STREAMHEAD2 and mp3
Originally committed as revision 7408 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
bc9a459780
commit
17230c9d4d
@ -822,13 +822,10 @@ static int swf_read_header(AVFormatContext *s, AVFormatParameters *ap)
|
|||||||
get_byte(pb);
|
get_byte(pb);
|
||||||
v = get_byte(pb);
|
v = get_byte(pb);
|
||||||
swf->samples_per_frame = get_le16(pb);
|
swf->samples_per_frame = get_le16(pb);
|
||||||
if (len!=4)
|
if (len > 4)
|
||||||
url_fskip(pb,len-4);
|
url_fskip(pb,len-4);
|
||||||
/* if mp3 streaming found, OK */
|
/* if mp3 streaming found, OK */
|
||||||
if ((v & 0x20) != 0) {
|
if ((v & 0x20) != 0) {
|
||||||
if ( tag == TAG_STREAMHEAD2 ) {
|
|
||||||
get_le16(pb);
|
|
||||||
}
|
|
||||||
ast = av_new_stream(s, 1);
|
ast = av_new_stream(s, 1);
|
||||||
if (!ast)
|
if (!ast)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
Loading…
Reference in New Issue
Block a user