aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dnxhddec.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2007-08-04 12:43:31 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2007-08-04 12:43:31 +0000
commit36ebf912064da70abdb63de2f364e16dfd43e5bb (patch)
treec7c49ed8050aa9b87c22ff69d74ac4bc0e6f8151 /libavcodec/dnxhddec.c
parent74e9b9ae702b50c58d106f56d27a08572e73280d (diff)
downloadffmpeg-36ebf912064da70abdb63de2f364e16dfd43e5bb.tar.gz
should be more correct
Originally committed as revision 9896 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dnxhddec.c')
-rw-r--r--libavcodec/dnxhddec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/dnxhddec.c b/libavcodec/dnxhddec.c
index 224439c47b..d32a6dd169 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;