[FFmpeg-cvslog] vqavideo: Reinitialise the actually used partial codebook bytestream-reader .
Carl Eugen Hoyos
git at videolan.org
Mon Dec 10 01:17:12 CET 2012
ffmpeg | branch: release/1.0 | Carl Eugen Hoyos <cehoyos at ag.or.at> | Thu Nov 22 22:28:17 2012 +0100| [a875a9a8339f5984b9bd70e3384a3be6ccbd42ba] | committer: Carl Eugen Hoyos
vqavideo: Reinitialise the actually used partial codebook bytestream-reader.
Fixes ticket #1942.
(cherry picked from commit dd6abc921af19100c4ace5ff72dee5f92c0e6ac0)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a875a9a8339f5984b9bd70e3384a3be6ccbd42ba
---
libavcodec/vqavideo.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/libavcodec/vqavideo.c b/libavcodec/vqavideo.c
index e4bad00..c814837 100644
--- a/libavcodec/vqavideo.c
+++ b/libavcodec/vqavideo.c
@@ -566,9 +566,7 @@ static int vqa_decode_chunk(VqaContext *s)
s->partial_countdown--;
if (s->partial_countdown <= 0) {
- GetByteContext gb;
-
- bytestream2_init(&gb, s->next_codebook_buffer, s->next_codebook_buffer_index);
+ bytestream2_init(&s->gb, s->next_codebook_buffer, s->next_codebook_buffer_index);
/* decompress codebook */
if ((res = decode_format80(s, s->next_codebook_buffer_index,
s->codebook, s->codebook_size, 0)) < 0)
More information about the ffmpeg-cvslog
mailing list