summaryrefslogtreecommitdiff
path: root/libavcodec/vqavideo.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2012-11-22 22:28:17 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2012-11-22 22:28:17 +0100
commitdd6abc921af19100c4ace5ff72dee5f92c0e6ac0 (patch)
tree1db8ac7e9940b4f7d6f847c168ce9707d6bd94a8 /libavcodec/vqavideo.c
parent6aa6baa4f2d46a3cea6c9844bc24a8784c755484 (diff)
vqavideo: Reinitialise the actually used partial codebook bytestream-reader.
Fixes ticket #1942.
Diffstat (limited to 'libavcodec/vqavideo.c')
-rw-r--r--libavcodec/vqavideo.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/vqavideo.c b/libavcodec/vqavideo.c
index 07346ecb91..2980f948b3 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)