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
release/0.6
tralph11@yahoo.com 15 years ago committed by Carl Eugen Hoyos
parent 558dbb8469
commit 711e69a730
  1. 2
      libavformat/mpeg.c

@ -113,6 +113,8 @@ static int mpegps_read_header(AVFormatContext *s,
m->sofdec++; m->sofdec++;
} while (v == sofdec[i] && i++ < 6); } while (v == sofdec[i] && i++ < 6);
m->sofdec = (m->sofdec == 6) ? 1 : 0;
/* no need to do more */ /* no need to do more */
return 0; return 0;
} }

Loading…
Cancel
Save