From 40a19c443430de520d86bbd644033c8e2ca87e9b Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Mon, 15 Dec 2008 17:51:10 +0000 Subject: [PATCH] Fix one peculiar case in Smacker decoding. Patch by Daniel Verkamp ($firstname drv nu) Thread [PATCH] Smacker video decoder bug fix Originally committed as revision 16143 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/smacker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/smacker.c b/libavcodec/smacker.c index 5de3769e3c..bcdf792e30 100644 --- a/libavcodec/smacker.c +++ b/libavcodec/smacker.c @@ -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;