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:
558dbb8
)
Improve sofdec dectection to avoid false positives for MP2.
author
tralph11@yahoo.com
<tralph11@yahoo.com>
Tue, 20 Oct 2009 15:27:05 +0000
(15:27 +0000)
committer
Carl Eugen Hoyos
<cehoyos@rainbow.studorg.tuwien.ac.at>
Tue, 20 Oct 2009 15:27:05 +0000
(15:27 +0000)
Patch by tralph11, tralph11 yahoo
Originally committed as revision 20333 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/mpeg.c
patch
|
blob
|
history
diff --git
a/libavformat/mpeg.c
b/libavformat/mpeg.c
index
8aa43d9
..
ad46467
100644
(file)
--- a/
libavformat/mpeg.c
+++ b/
libavformat/mpeg.c
@@
-113,6
+113,8
@@
static int mpegps_read_header(AVFormatContext *s,
m->sofdec++;
} while (v == sofdec[i] && i++ < 6);
+ m->sofdec = (m->sofdec == 6) ? 1 : 0;
+
/* no need to do more */
return 0;
}