summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgxw <guxiwei-hf@loongson.cn>2018-12-24 14:07:44 +0800
committerMichael Niedermayer <michael@niedermayer.cc>2019-01-21 07:53:26 +0100
commit929b5519d8e9fb0bada84a708c7b43bdb447574d (patch)
tree0024015b8d16404264a28a87a0ee3e175d394ceb
parent5ed024e40bdbc0047d7cad38f6b7d52903dbc108 (diff)
downloadffmpeg-929b5519d8e9fb0bada84a708c7b43bdb447574d.tar.gz
avcodec/mips: Fix failed case: hevc-conformance-AMP_A_Samsung_* when enable msa
The AV_INPUT_BUFFER_PADDING_SIZE has been increased to 64, but the value is still 32 in function ff_hevc_sao_edge_filter_8_msa. So, use AV_INPUT_BUFFER_PADDING_SIZE directly. Also, use MAX_PB_SIZE directly instead of 64. Fate tests passed. Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit f652c7a45c60427db0a89fae665e63b546af6ebb) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/mips/hevc_lpf_sao_msa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mips/hevc_lpf_sao_msa.c b/libavcodec/mips/hevc_lpf_sao_msa.c
index 5b5537a264..adcafde621 100644
--- a/libavcodec/mips/hevc_lpf_sao_msa.c
+++ b/libavcodec/mips/hevc_lpf_sao_msa.c
@@ -2630,7 +2630,7 @@ void ff_hevc_sao_edge_filter_8_msa(uint8_t *dst, uint8_t *src,
int16_t *sao_offset_val,
int eo, int width, int height)
{
- ptrdiff_t stride_src = (2 * 64 + 32) / sizeof(uint8_t);
+ ptrdiff_t stride_src = (2 * MAX_PB_SIZE + AV_INPUT_BUFFER_PADDING_SIZE) / sizeof(uint8_t);
switch (eo) {
case 0: