mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
vqavideo: Reinitialise the actually used partial codebook bytestream-reader.
Fixes ticket #1942.
This commit is contained in:
parent
6aa6baa4f2
commit
dd6abc921a
@ -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…
Reference in New Issue
Block a user