aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-03-21 00:10:22 +0000
committerMichael Niedermayer <michaelni@gmx.at>2012-03-21 03:09:58 +0100
commit1a7a707f740210b0029395b762ae8955593cb5c4 (patch)
treef1814286267f1ef32e3c6a0c3165abe67bf73255
parent0acacd23d458cf4ce0464fbfe96931156a78fcc8 (diff)
downloadffmpeg-1a7a707f740210b0029395b762ae8955593cb5c4.tar.gz
tgq: use bytestream2_get_bytes_left()
Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/eatgq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/eatgq.c b/libavcodec/eatgq.c
index 5eb9ca32f2..756b7ed315 100644
--- a/libavcodec/eatgq.c
+++ b/libavcodec/eatgq.c
@@ -150,7 +150,7 @@ static void tgq_decode_mb(TgqContext *s, int mb_y, int mb_x){
mode = bytestream2_get_byte(&s->gb);
if (mode>12) {
GetBitContext gb;
- init_get_bits(&gb, s->gb.buffer, FFMIN(s->gb.buffer_end - s->gb.buffer, mode) * 8);
+ init_get_bits(&gb, s->gb.buffer, FFMIN(bytestream2_get_bytes_left(&s->gb), mode) * 8);
for(i=0; i<6; i++)
tgq_decode_block(s, s->block[i], &gb);
tgq_idct_put_mb(s, s->block, mb_x, mb_y);