# HG changeset patch # User bcoudurier # Date 1186232389 0 # Node ID 75940bbbecfc7872f43cff961dfdc78bc7063899 # Parent 521465ec12e0872dfa71da41dfef2cc9fa73ac97 add coding unit size for interlaced decoding diff -r 521465ec12e0 -r 75940bbbecfc dnxhddec.c --- a/dnxhddec.c Sat Aug 04 12:43:31 2007 +0000 +++ b/dnxhddec.c Sat Aug 04 12:59:49 2007 +0000 @@ -33,6 +33,7 @@ unsigned int width, height; int interlaced; unsigned int frame_size; + unsigned int coding_unit_size; int index_bits; int bit_depth; const uint8_t *luma_weigth, *chroma_weigth; @@ -66,13 +67,13 @@ } DNXHDContext; static const CIDEntry cid_table[] = { - { 1238, 1920, 1080, 0, 917504, 4, 8, + { 1238, 1920, 1080, 0, 917504, 917504, 4, 8, dnxhd_1238_luma_weigth, dnxhd_1238_chroma_weigth, dnxhd_1238_dc_codes, dnxhd_1238_dc_bits, dnxhd_1238_ac_codes, dnxhd_1238_ac_bits, dnxhd_1238_ac_level, dnxhd_1238_ac_run_flag, dnxhd_1238_ac_index_flag, dnxhd_1238_run_codes, dnxhd_1238_run_bits, dnxhd_1238_run }, -/* { 1243, 1920, 1080, 1, 917504, 4, 8, */ +/* { 1243, 1920, 1080, 1, 917504, 458752, 4, 8, */ /* dnxhd_1243_luma_weigth, dnxhd_1243_chroma_weigth, */ /* dnxhd_1238_dc_codes, dnxhd_1238_dc_bits, */ /* dnxhd_1238_ac_codes, dnxhd_1238_ac_bits, dnxhd_1238_ac_level, */ @@ -170,7 +171,7 @@ if (dnxhd_init_vlc(ctx, ctx->cid) < 0) return -1; - if (buf_size < ctx->cid_table->frame_size) { + if (buf_size < ctx->cid_table->coding_unit_size) { av_log(ctx->avctx, AV_LOG_ERROR, "incorrect frame size\n"); return -1; }