From 0995641202741e56874d468fbdacf2f8728535a2 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sun, 1 Apr 2018 21:08:16 +0200 Subject: [PATCH] avformat/mpeg: add missing check Signed-off-by: Paul B Mahol --- libavformat/mpeg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index 0c507e9f01..8ae4740920 100644 --- a/libavformat/mpeg.c +++ b/libavformat/mpeg.c @@ -456,6 +456,8 @@ redo: startcode = 0x80; m->raw_ac3 = 1; avio_skip(s->pb, -2); + } else { + avio_skip(s->pb, -1); } } else { len--;