You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	vqavideo: fix decoding of samples with no partial updates.
Fixes playback of http://samples.mplayerhq.hu/game-formats/vqa/landsoflore/B0EB8711.VQA (trac issue #710). Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
		| @@ -544,7 +544,7 @@ static int vqa_decode_chunk(VqaContext *s) | ||||
|         s->next_codebook_buffer_index += chunk_size; | ||||
|  | ||||
|         s->partial_countdown--; | ||||
|         if (s->partial_countdown == 0) { | ||||
|         if (s->partial_countdown <= 0) { | ||||
|  | ||||
|             /* time to replace codebook */ | ||||
|             memcpy(s->codebook, s->next_codebook_buffer, | ||||
| @@ -567,7 +567,7 @@ static int vqa_decode_chunk(VqaContext *s) | ||||
|         s->next_codebook_buffer_index += chunk_size; | ||||
|  | ||||
|         s->partial_countdown--; | ||||
|         if (s->partial_countdown == 0) { | ||||
|         if (s->partial_countdown <= 0) { | ||||
|             GetByteContext gb; | ||||
|  | ||||
|             bytestream2_init(&gb, s->next_codebook_buffer, s->next_codebook_buffer_index); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user