git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9e7fa8
)
seek backwards 4 bytes if 'fLaC' marker is not found
author
Justin Ruggles
<justin.ruggles@gmail.com>
Sat, 21 Mar 2009 00:49:14 +0000
(
00:49
+0000)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Sat, 21 Mar 2009 00:49:14 +0000
(
00:49
+0000)
Originally committed as revision 18086 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/flacdec.c
patch
|
blob
|
history
diff --git
a/libavformat/flacdec.c
b/libavformat/flacdec.c
index
9db65bd
..
c843214
100644
(file)
--- a/
libavformat/flacdec.c
+++ b/
libavformat/flacdec.c
@@
-50,8
+50,10
@@
static int flac_read_header(AVFormatContext *s,
}
/* if fLaC marker is not found, assume there is no header */
- if (get_le32(s->pb) != MKTAG('f','L','a','C'))
+ if (get_le32(s->pb) != MKTAG('f','L','a','C')) {
+ url_fseek(s->pb, -4, SEEK_CUR);
return 0;
+ }
/* process metadata blocks */
while (!url_feof(s->pb) && !metadata_last) {