diff mpeg.c @ 5321:a4a45f236eec libavformat

Improve sofdec dectection to avoid false positives for MP2. Patch by tralph11, tralph11 yahoo
author cehoyos
date Tue, 20 Oct 2009 15:27:05 +0000
parents 4277da592002
children 3e5fefc4b475
line wrap: on
line diff
--- a/mpeg.c	Tue Oct 20 06:40:01 2009 +0000
+++ b/mpeg.c	Tue Oct 20 15:27:05 2009 +0000
@@ -113,6 +113,8 @@
         m->sofdec++;
     } while (v == sofdec[i] && i++ < 6);
 
+    m->sofdec = (m->sofdec == 6) ? 1 : 0;
+
     /* no need to do more */
     return 0;
 }