Improve sofdec dectection to avoid false positives for MP2.

Patch by tralph11, tralph11 yahoo

Originally committed as revision 20333 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index 8aa43d9..ad46467 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -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;
 }