diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-10-30 18:28:00 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-10-30 18:28:00 +0100 |
commit | f0315318164037ddb72368d02e434932375be745 (patch) | |
tree | 28e6fbbbb2da3c0f855c750098c67bc6e870ad14 /libavcodec/vaapi_mpeg2.c | |
parent | 9c7662aeba9908bf2892ba034686d5c93539b291 (diff) | |
download | ffmpeg-f0315318164037ddb72368d02e434932375be745.tar.gz |
avcodec/vaapi_mpeg2: Use skip_1stop_8data_bits()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vaapi_mpeg2.c')
-rw-r--r-- | libavcodec/vaapi_mpeg2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vaapi_mpeg2.c b/libavcodec/vaapi_mpeg2.c index d626f242e5..cdc70eefa8 100644 --- a/libavcodec/vaapi_mpeg2.c +++ b/libavcodec/vaapi_mpeg2.c @@ -115,8 +115,8 @@ static int vaapi_mpeg2_decode_slice(AVCodecContext *avctx, const uint8_t *buffer intra_slice_flag = get_bits1(&gb); if (intra_slice_flag) { skip_bits(&gb, 8); - while (get_bits1(&gb) != 0) - skip_bits(&gb, 8); + if (skip_1stop_8data_bits(&gb) < 0) + return AVERROR_INVALIDDATA; } macroblock_offset = get_bits_count(&gb); |