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:
ffa18de
)
avcodec/mdec: use init_get_bits8()
author
Paul B Mahol
<onemda@gmail.com>
Wed, 21 Aug 2013 18:34:04 +0000
(18:34 +0000)
committer
Paul B Mahol
<onemda@gmail.com>
Wed, 21 Aug 2013 18:35:58 +0000
(18:35 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/mdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/mdec.c
b/libavcodec/mdec.c
index
bd1966e
..
9211fe7
100644
(file)
--- a/
libavcodec/mdec.c
+++ b/
libavcodec/mdec.c
@@
-177,7
+177,8
@@
static int decode_frame(AVCodecContext *avctx,
a->bitstream_buffer[i] = buf[i + 1];
a->bitstream_buffer[i + 1] = buf[i];
}
- init_get_bits(&a->gb, a->bitstream_buffer, buf_size * 8);
+ if ((ret = init_get_bits8(&a->gb, a->bitstream_buffer, buf_size)) < 0)
+ return ret;
/* skip over 4 preamble bytes in stream (typically 0xXX 0xXX 0x00 0x38) */
skip_bits(&a->gb, 32);