summaryrefslogtreecommitdiff
path: root/libavformat/mpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/mpeg.c')
-rw-r--r--libavformat/mpeg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index 05957e6f6e..6112d75192 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -1178,6 +1178,9 @@ static int mpegps_read_pes_header(AVFormatContext *s,
header_len--;
}
}
+ else if( c!= 0xf )
+ goto redo;
+
if (startcode == 0x1bd) {
if (len < 1)
goto redo;