changeset 8332:57d9d1f7955a libavcodec

Fix one peculiar case in Smacker decoding. Patch by Daniel Verkamp ($firstname <at> drv <dot> nu) Thread [PATCH] Smacker video decoder bug fix
author kostya
date Mon, 15 Dec 2008 17:51:10 +0000
parents 0579157cbb14
children 09aafff47bc0
files smacker.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/smacker.c	Mon Dec 15 10:08:31 2008 +0000
+++ b/smacker.c	Mon Dec 15 17:51:10 2008 +0000
@@ -457,8 +457,8 @@
                 case 2:
                     for(i = 0; i < 2; i++) {
                         uint16_t pix1, pix2;
+                        pix2 = smk_get_code(&gb, smk->full_tbl, smk->full_last);
                         pix1 = smk_get_code(&gb, smk->full_tbl, smk->full_last);
-                        pix2 = smk_get_code(&gb, smk->full_tbl, smk->full_last);
                         AV_WL16(out,pix1);
                         AV_WL16(out+2,pix2);
                         out += stride;