aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/smacker.c
diff options
context:
space:
mode:
authorDaniel Verkamp <daniel@drv.nu>2008-12-15 17:51:10 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2008-12-15 17:51:10 +0000
commit40a19c443430de520d86bbd644033c8e2ca87e9b (patch)
tree7ba961c62b0153b8aa2165b41d54dcc483a98db9 /libavcodec/smacker.c
parent9506090df9baca63520a438d8e13f211d8953733 (diff)
downloadffmpeg-40a19c443430de520d86bbd644033c8e2ca87e9b.tar.gz
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
Diffstat (limited to 'libavcodec/smacker.c')
-rw-r--r--libavcodec/smacker.c2
1 files changed, 1 insertions, 1 deletions
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;