diff options
Diffstat (limited to 'libavformat/mpeg.c')
-rw-r--r-- | libavformat/mpeg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index 8aa43d9448..ad4646786f 100644 --- a/libavformat/mpeg.c +++ b/libavformat/mpeg.c @@ -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; } |