Commit 711e69a7 authored by tralph11@yahoo.com's avatar tralph11@yahoo.com Committed by Carl Eugen Hoyos

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
parent 558dbb84
......@@ -113,6 +113,8 @@ static int mpegps_read_header(AVFormatContext *s,
m->sofdec++;
} while (v == sofdec[i] && i++ < 6);
m->sofdec = (m->sofdec == 6) ? 1 : 0;
/* no need to do more */
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment