diff dnxhddec.c @ 5463:521465ec12e0 libavcodec

should be more correct
author bcoudurier
date Sat, 04 Aug 2007 12:43:31 +0000
parents 3e15e577ca32
children 75940bbbecfc
line wrap: on
line diff
--- a/dnxhddec.c	Sat Aug 04 12:21:00 2007 +0000
+++ b/dnxhddec.c	Sat Aug 04 12:43:31 2007 +0000
@@ -302,7 +302,9 @@
 {
     int x, y;
     for (y = 0; y < ctx->mb_height; y++) {
-        memset(ctx->last_dc, 4, sizeof(ctx->last_dc)); // 4 for levels +128
+        ctx->last_dc[0] =
+        ctx->last_dc[1] =
+        ctx->last_dc[2] = 1024; // 1024 for levels +128
         init_get_bits(&ctx->gb, buf + ctx->mb_scan_index[y], (buf_size - ctx->mb_scan_index[y]) << 3);
         for (x = 0; x < ctx->mb_width; x++) {
             //START_TIMER;