[FFmpeg-cvslog] tgq: use bytestream2_get_bytes_left()
Paul B Mahol
git at videolan.org
Wed Mar 21 03:26:44 CET 2012
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Mar 21 00:10:22 2012 +0000| [1a7a707f740210b0029395b762ae8955593cb5c4] | committer: Michael Niedermayer
tgq: use bytestream2_get_bytes_left()
Signed-off-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1a7a707f740210b0029395b762ae8955593cb5c4
---
libavcodec/eatgq.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/eatgq.c b/libavcodec/eatgq.c
index 5eb9ca3..756b7ed 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);
More information about the ffmpeg-cvslog
mailing list