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:
1a244c2
)
avcodec/flashsv: use init_get_bits8()
author
Paul B Mahol
<onemda@gmail.com>
Tue, 5 Nov 2013 12:31:18 +0000
(12:31 +0000)
committer
Paul B Mahol
<onemda@gmail.com>
Tue, 5 Nov 2013 12:31:18 +0000
(12:31 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/flashsv.c
patch
|
blob
|
history
diff --git
a/libavcodec/flashsv.c
b/libavcodec/flashsv.c
index
82c66db
..
f9af396
100644
(file)
--- a/
libavcodec/flashsv.c
+++ b/
libavcodec/flashsv.c
@@
-255,7
+255,8
@@
static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
if (buf_size < 4)
return -1;
- init_get_bits(&gb, avpkt->data, buf_size * 8);
+ if ((ret = init_get_bits(&gb, avpkt->data, buf_size)) < 0)
+ return ret;
/* start to parse the bitstream */
s->block_width = 16 * (get_bits(&gb, 4) + 1);