[FFmpeg-cvslog] avcodec/mpeg12dec: Use skip_1stop_8data_bits()
Michael Niedermayer
git at videolan.org
Wed Oct 30 21:37:58 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Oct 30 18:28:00 2013 +0100| [18802942d1a28b62b2691d06de7b44ef46b5e177] | committer: Michael Niedermayer
avcodec/mpeg12dec: Use skip_1stop_8data_bits()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=18802942d1a28b62b2691d06de7b44ef46b5e177
---
libavcodec/mpeg12dec.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c
index 6b6c03e..5e320bd 100644
--- a/libavcodec/mpeg12dec.c
+++ b/libavcodec/mpeg12dec.c
@@ -1639,9 +1639,8 @@ static int mpeg_decode_slice(MpegEncContext *s, int mb_y,
}
/* extra slice info */
- while (get_bits1(&s->gb) != 0) {
- skip_bits(&s->gb, 8);
- }
+ if (skip_1stop_8data_bits(&s->gb) < 0)
+ return AVERROR_INVALIDDATA;
s->mb_x = 0;
More information about the ffmpeg-cvslog
mailing list