diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-03-24 23:01:37 +0100 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-03-25 12:23:44 +0200 |
commit | 535eed93018fd73400d16892e289e89cbfe765bf (patch) | |
tree | b5773d73dba91f8a62c7dcbd41386216ee98be57 /libavcodec/vqavideo.c | |
parent | 7e592379d909e5df2382b0aab92d51d98dafe578 (diff) | |
download | ffmpeg-535eed93018fd73400d16892e289e89cbfe765bf.tar.gz |
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>
Diffstat (limited to 'libavcodec/vqavideo.c')
-rw-r--r-- | libavcodec/vqavideo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vqavideo.c b/libavcodec/vqavideo.c index 5c864c2ab1..ebdc17eaef 100644 --- a/libavcodec/vqavideo.c +++ b/libavcodec/vqavideo.c @@ -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); |