projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc9a459
)
dont skip too many bytes if tag is TAG_STREAMHEAD2 and mp3
author
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Fri, 5 Jan 2007 14:17:41 +0000
(14:17 +0000)
committer
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Fri, 5 Jan 2007 14:17:41 +0000
(14:17 +0000)
Originally committed as revision 7408 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/swf.c
patch
|
blob
|
history
diff --git
a/libavformat/swf.c
b/libavformat/swf.c
index
6029e36
..
caadc9d
100644
(file)
--- a/
libavformat/swf.c
+++ b/
libavformat/swf.c
@@
-822,13
+822,10
@@
static int swf_read_header(AVFormatContext *s, AVFormatParameters *ap)
get_byte(pb);
v = get_byte(pb);
swf->samples_per_frame = get_le16(pb);
- if (len
!=
4)
+ if (len
>
4)
url_fskip(pb,len-4);
/* if mp3 streaming found, OK */
if ((v & 0x20) != 0) {
- if ( tag == TAG_STREAMHEAD2 ) {
- get_le16(pb);
- }
ast = av_new_stream(s, 1);
if (!ast)
return -ENOMEM;