[SCM] libav/experimental: should be more correct

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:04:42 UTC 2013


The following commit has been merged in the experimental branch:
commit 36ebf912064da70abdb63de2f364e16dfd43e5bb
Author: Baptiste Coudurier <baptiste.coudurier at gmail.com>
Date:   Sat Aug 4 12:43:31 2007 +0000

    should be more correct
    
    Originally committed as revision 9896 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/dnxhddec.c b/libavcodec/dnxhddec.c
index 224439c..d32a6dd 100644
--- a/libavcodec/dnxhddec.c
+++ b/libavcodec/dnxhddec.c
@@ -302,7 +302,9 @@ static int dnxhd_decode_macroblocks(DNXHDContext *ctx, uint8_t *buf, int buf_siz
 {
     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;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list