Revision 3c605485

View differences:

libavcodec/dnxhddec.c
336 336
    avcodec_set_dimensions(avctx, ctx->width, ctx->height);
337 337

  
338 338
    if (first_field) {
339
    if (ctx->picture.data[0])
340
        avctx->release_buffer(avctx, &ctx->picture);
341
    if (avctx->get_buffer(avctx, &ctx->picture) < 0) {
342
        av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
343
        return -1;
344
    }
339
        if (ctx->picture.data[0])
340
            avctx->release_buffer(avctx, &ctx->picture);
341
        if (avctx->get_buffer(avctx, &ctx->picture) < 0) {
342
            av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
343
            return -1;
344
        }
345 345
    }
346 346

  
347 347
    dnxhd_decode_macroblocks(ctx, buf + 0x280, buf_size - 0x280);

Also available in: Unified diff