[FFmpeg-cvslog] r20333 - trunk/libavformat/mpeg.c
cehoyos
subversion
Tue Oct 20 17:27:05 CEST 2009
Author: cehoyos
Date: Tue Oct 20 17:27:05 2009
New Revision: 20333
Log:
Improve sofdec dectection to avoid false positives for MP2.
Patch by tralph11, tralph11 yahoo
Modified:
trunk/libavformat/mpeg.c
Modified: trunk/libavformat/mpeg.c
==============================================================================
--- trunk/libavformat/mpeg.c Tue Oct 20 16:16:23 2009 (r20332)
+++ trunk/libavformat/mpeg.c Tue Oct 20 17:27:05 2009 (r20333)
@@ -113,6 +113,8 @@ static int mpegps_read_header(AVFormatCo
m->sofdec++;
} while (v == sofdec[i] && i++ < 6);
+ m->sofdec = (m->sofdec == 6) ? 1 : 0;
+
/* no need to do more */
return 0;
}
More information about the ffmpeg-cvslog
mailing list