Revision dfd2a005 libavcodec/dnxhddec.c

View differences:

libavcodec/dnxhddec.c
107 107
    ctx->height = AV_RB16(buf + 0x18);
108 108
    ctx->width  = AV_RB16(buf + 0x1a);
109 109

  
110
    dprintf(ctx->avctx, "width %d, heigth %d\n", ctx->width, ctx->height);
110
    av_dlog(ctx->avctx, "width %d, heigth %d\n", ctx->width, ctx->height);
111 111

  
112 112
    if (buf[0x21] & 0x40) {
113 113
        av_log(ctx->avctx, AV_LOG_ERROR, "10 bit per component\n");
......
115 115
    }
116 116

  
117 117
    ctx->cid = AV_RB32(buf + 0x28);
118
    dprintf(ctx->avctx, "compression id %d\n", ctx->cid);
118
    av_dlog(ctx->avctx, "compression id %d\n", ctx->cid);
119 119

  
120 120
    if (dnxhd_init_vlc(ctx, ctx->cid) < 0)
121 121
        return -1;
......
128 128
    ctx->mb_width = ctx->width>>4;
129 129
    ctx->mb_height = buf[0x16d];
130 130

  
131
    dprintf(ctx->avctx, "mb width %d, mb height %d\n", ctx->mb_width, ctx->mb_height);
131
    av_dlog(ctx->avctx, "mb width %d, mb height %d\n", ctx->mb_width, ctx->mb_height);
132 132

  
133 133
    if ((ctx->height+15)>>4 == ctx->mb_height && ctx->picture.interlaced_frame)
134 134
        ctx->height <<= 1;
......
141 141

  
142 142
    for (i = 0; i < ctx->mb_height; i++) {
143 143
        ctx->mb_scan_index[i] = AV_RB32(buf + 0x170 + (i<<2));
144
        dprintf(ctx->avctx, "mb scan index %d\n", ctx->mb_scan_index[i]);
144
        av_dlog(ctx->avctx, "mb scan index %d\n", ctx->mb_scan_index[i]);
145 145
        if (buf_size < ctx->mb_scan_index[i] + 0x280) {
146 146
            av_log(ctx->avctx, AV_LOG_ERROR, "invalid mb scan index\n");
147 147
            return -1;
......
293 293
    AVFrame *picture = data;
294 294
    int first_field = 1;
295 295

  
296
    dprintf(avctx, "frame size %d\n", buf_size);
296
    av_dlog(avctx, "frame size %d\n", buf_size);
297 297

  
298 298
 decode_coding_unit:
299 299
    if (dnxhd_decode_header(ctx, buf, buf_size, first_field) < 0)

Also available in: Unified diff