diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-05-23 19:56:43 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-05-23 19:58:03 +0000 |
commit | 15b9c0b49ff36340726371f6ed589212d5d4cb39 (patch) | |
tree | ce11798ac835d3f53ced1ec84ce1dd47f84a1cb8 | |
parent | cdc3f8f3072eb2aff1eb515d0a958e2991e62b96 (diff) | |
download | ffmpeg-15b9c0b49ff36340726371f6ed589212d5d4cb39.tar.gz |
escape124: switch to init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavcodec/escape124.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/escape124.c b/libavcodec/escape124.c index 43caa7ee11..0879b3e034 100644 --- a/libavcodec/escape124.c +++ b/libavcodec/escape124.c @@ -200,7 +200,6 @@ static int escape124_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { - const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; Escape124Context *s = avctx->priv_data; AVFrame *frame = data; @@ -218,7 +217,8 @@ static int escape124_decode_frame(AVCodecContext *avctx, int ret; - init_get_bits(&gb, buf, buf_size * 8); + if ((ret = init_get_bits8(&gb, avpkt->data, avpkt->size)) < 0) + return ret; // This call also guards the potential depth reads for the // codebook unpacking. |