[Ffmpeg-cvslog] r7404 - trunk/libavformat/tiertexseq.c
michael
subversion
Tue Jan 2 23:22:12 CET 2007
Author: michael
Date: Tue Jan 2 23:22:12 2007
New Revision: 7404
Modified:
trunk/libavformat/tiertexseq.c
Log:
missdetected a broken mp3
Modified: trunk/libavformat/tiertexseq.c
==============================================================================
--- trunk/libavformat/tiertexseq.c (original)
+++ trunk/libavformat/tiertexseq.c Tue Jan 2 23:22:12 2007
@@ -62,7 +62,7 @@
{
int i;
- if (p->buf_size < 256)
+ if (p->buf_size < 258)
return 0;
/* there's no real header in a .seq file, the only thing they have in common */
@@ -71,6 +71,9 @@
if (p->buf[i] != 0)
return 0;
+ if(p->buf[256]==0 && p->buf[257]==0)
+ return 0;
+
/* only one fourth of the score since the previous check is too naive */
return AVPROBE_SCORE_MAX / 4;
}
More information about the ffmpeg-cvslog
mailing list