[FFmpeg-devel] [PATCH] dnxhdenc: fix usage of discording scans
Christophe Gisquet
christophe.gisquet at gmail.com
Sat Oct 3 10:01:23 CEST 2015
Hi,
2015-10-02 20:57 GMT+02:00 Christophe Gisquet <christophe.gisquet at gmail.com>:
> @@ -498,7 +498,7 @@ void dnxhd_unquantize_c(DNXHDEncContext *ctx, int16_t *block, int n,
> : ctx->cid_table->luma_weight;
>
> for (i = 1; i <= last_index; i++) {
> - int j = ctx->m.intra_scantable.permutated[i];
> + int j = ctx->m.intra_scantable.scantable[i];
> level = block[j];
> if (level) {
> if (level < 0) {
Actually, the reason for the other hunks is different but the change
is needed there (you need to parse the block according to the true
inverse zigzag).
The original code in this hunk is probably correct.
And I got a crash report so this might need better fix.
--
Christophe
More information about the ffmpeg-devel
mailing list