aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-04 16:17:32 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-04 23:52:29 +0200
commit1d99adc95317d0e671d479a7643c706408736552 (patch)
tree5c60c6deccddc68697b88db75ed8a3ad4692cb39
parent67991f3a3e5a5cfca9e049a6af0ad8b7325e55b7 (diff)
downloadffmpeg-1d99adc95317d0e671d479a7643c706408736552.tar.gz
avcodec/hevc: fix chroma transform_add size
Fixes accessing misaligned address Fixes: signal_sigsegv_1feb99c_10_signal_sigsegv_2d1d35c_79_cov_691940146_EXT_A_ericsson_3.bit Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit df8394c693d3c1e13b7ebf6af01c5e55321cf952) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/hevc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index 5fc7324862..309b3854e9 100644
--- a/libavcodec/hevc.c
+++ b/libavcodec/hevc.c
@@ -981,7 +981,7 @@ static int hls_transform_unit(HEVCContext *s, int x0, int y0,
for (i = 0; i < (size * size); i++) {
coeffs[i] = ((lc->tu.res_scale_val * coeffs_y[i]) >> 3);
}
- s->hevcdsp.transform_add[log2_trafo_size-2](dst, coeffs, stride);
+ s->hevcdsp.transform_add[log2_trafo_size_c-2](dst, coeffs, stride);
}
}
@@ -1010,7 +1010,7 @@ static int hls_transform_unit(HEVCContext *s, int x0, int y0,
for (i = 0; i < (size * size); i++) {
coeffs[i] = ((lc->tu.res_scale_val * coeffs_y[i]) >> 3);
}
- s->hevcdsp.transform_add[log2_trafo_size-2](dst, coeffs, stride);
+ s->hevcdsp.transform_add[log2_trafo_size_c-2](dst, coeffs, stride);
}
}
} else if (blk_idx == 3) {