You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
vqavideo: Reinitialise the actually used partial codebook bytestream-reader.
Fixes ticket #1942.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user