Browse Source

Fix one peculiar case in Smacker decoding.

Patch by Daniel Verkamp ($firstname <at> drv <dot> nu)
Thread [PATCH] Smacker video decoder bug fix

Originally committed as revision 16143 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Daniel Verkamp Kostya Shishkov 16 years ago
parent
commit
40a19c4434
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/smacker.c

+ 1
- 1
libavcodec/smacker.c View File

@@ -457,8 +457,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, const
case 2:
for(i = 0; i < 2; i++) {
uint16_t pix1, pix2;
pix1 = smk_get_code(&gb, smk->full_tbl, smk->full_last);
pix2 = smk_get_code(&gb, smk->full_tbl, smk->full_last);
pix1 = smk_get_code(&gb, smk->full_tbl, smk->full_last);
AV_WL16(out,pix1);
AV_WL16(out+2,pix2);
out += stride;


Loading…
Cancel
Save