changeset 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 db1e4c61789a
children d09cb951c704
files mpeg.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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;
 }