git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97996ef
)
avcodec/faxcompr: use init_get_bits8()
author
Paul B Mahol
<onemda@gmail.com>
Sat, 7 Feb 2015 17:16:14 +0000
(17:16 +0000)
committer
Paul B Mahol
<onemda@gmail.com>
Sat, 7 Feb 2015 17:16:14 +0000
(17:16 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/faxcompr.c
patch
|
blob
|
history
diff --git
a/libavcodec/faxcompr.c
b/libavcodec/faxcompr.c
index
155f78d
..
44d2721
100644
(file)
--- a/
libavcodec/faxcompr.c
+++ b/
libavcodec/faxcompr.c
@@
-296,7
+296,8
@@
int ff_ccitt_unpack(AVCodecContext *avctx, const uint8_t *src, int srcsize,
ref[0] = avctx->width;
ref[1] = 0;
ref[2] = 0;
- init_get_bits(&gb, src, srcsize * 8);
+ if ((ret = init_get_bits8(&gb, src, srcsize)) < 0)
+ return ret;
has_eol = show_bits(&gb, 12) == 1 || show_bits(&gb, 16) == 1;
for (j = 0; j < height; j++) {