Browse Source

vqavideo: Reinitialise the actually used partial codebook bytestream-reader.

Fixes ticket #1942.
tags/n1.1
Carl Eugen Hoyos 13 years ago
parent
commit
dd6abc921a
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      libavcodec/vqavideo.c

+ 1
- 3
libavcodec/vqavideo.c View File

@@ -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)


Loading…
Cancel
Save