summaryrefslogtreecommitdiffstats
path: root/libavcodec/cdxl.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2015-02-04 13:26:50 +0000
committerPaul B Mahol <onemda@gmail.com>2015-02-04 13:40:04 +0000
commit9f1a5dbc26bf3508aeaa57ea0de52a50d039d457 (patch)
treebea49ca0df055612cab7e48343a1a94a28aa0c23 /libavcodec/cdxl.c
parent85a8069d23edd091646c62d2bd819244f74fc2eb (diff)
downloadffmpeg-streaming-9f1a5dbc26bf3508aeaa57ea0de52a50d039d457.zip
ffmpeg-streaming-9f1a5dbc26bf3508aeaa57ea0de52a50d039d457.tar.gz
avcodec/cdxl: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/cdxl.c')
-rw-r--r--libavcodec/cdxl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/cdxl.c b/libavcodec/cdxl.c
index 13ad57c..0393839 100644
--- a/libavcodec/cdxl.c
+++ b/libavcodec/cdxl.c
@@ -80,7 +80,8 @@ static void bitplanar2chunky(CDXLVideoContext *c, int linesize, uint8_t *out)
GetBitContext gb;
int x, y, plane;
- init_get_bits(&gb, c->video, c->video_size * 8);
+ if (init_get_bits8(&gb, c->video, c->video_size) < 0)
+ return;
for (plane = 0; plane < c->bpp; plane++) {
for (y = 0; y < c->avctx->height; y++) {
for (x = 0; x < c->avctx->width; x++)
@@ -95,7 +96,8 @@ static void bitline2chunky(CDXLVideoContext *c, int linesize, uint8_t *out)
GetBitContext gb;
int x, y, plane;
- init_get_bits(&gb, c->video, c->video_size * 8);
+ if (init_get_bits8(&gb, c->video, c->video_size) < 0)
+ return;
for (y = 0; y < c->avctx->height; y++) {
for (plane = 0; plane < c->bpp; plane++) {
for (x = 0; x < c->avctx->width; x++)
OpenPOWER on IntegriCloud