vl/idct: cleanup all idct buffers
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 17 Aug 2013 21:24:26 +0000 (22:24 +0100)
committerChristian König <christian.koenig@amd.com>
Mon, 19 Aug 2013 16:32:08 +0000 (18:32 +0200)
Code should loop through and cleanup the three (VL_NUM_COMPONENTS) idct
buffers, rather than doing the first one three times.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/auxiliary/vl/vl_mpeg12_decoder.c

index 5782f620e615e957a664536afad60f4e29358129..f838e74210df19583ba72f5d6440b6d241f61f84 100644 (file)
@@ -198,7 +198,7 @@ cleanup_idct_buffer(struct vl_mpeg12_buffer *buf)
    assert(buf);
 
    for (i = 0; i < 3; ++i)
-      vl_idct_cleanup_buffer(&buf->idct[0]);
+      vl_idct_cleanup_buffer(&buf->idct[i]);
 }
 
 static bool