OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
290be34
)
avcodec/tscc2: use init_get_bits8()
author
Paul B Mahol
<onemda@gmail.com>
Tue, 5 Nov 2013 12:44:20 +0000
(12:44 +0000)
committer
Paul B Mahol
<onemda@gmail.com>
Tue, 5 Nov 2013 12:44:20 +0000
(12:44 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/tscc2.c
patch
|
blob
|
history
diff --git
a/libavcodec/tscc2.c
b/libavcodec/tscc2.c
index
9bcfa38
..
bdc7525
100644
(file)
--- a/
libavcodec/tscc2.c
+++ b/
libavcodec/tscc2.c
@@
-192,7
+192,8
@@
static int tscc2_decode_slice(TSCC2Context *c, int mb_y,
int i, mb_x, q, ret;
int off;
- init_get_bits(&c->gb, buf, buf_size * 8);
+ if ((ret = init_get_bits8(&c->gb, buf, buf_size)) < 0)
+ return ret;
for (mb_x = 0; mb_x < c->mb_width; mb_x++) {
q = c->slice_quants[mb_x + c->mb_width * mb_y];