OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d16394
)
mpegaudio_parser: be less picky on the start position
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 21 Jun 2011 00:49:20 +0000
(
02:49
+0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 21 Jun 2011 01:07:11 +0000
(
03:07
+0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mpegaudio_parser.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpegaudio_parser.c
b/libavcodec/mpegaudio_parser.c
index
94a286f
..
9c19d6f
100644
(file)
--- a/
libavcodec/mpegaudio_parser.c
+++ b/
libavcodec/mpegaudio_parser.c
@@
-66,7
+66,8
@@
static int mpegaudio_parse(AVCodecParserContext *s1,
ret = ff_mpa_decode_header(avctx, state, &sr, &channels, &frame_size, &bit_rate);
if (ret < 4) {
- s->header_count= -2;
+ if(i > 4)
+ s->header_count= -2;
} else {
if((state&SAME_HEADER_MASK) != (s->header&SAME_HEADER_MASK) && s->header)
s->header_count= -3;