[FFmpeg-devel] [PATCH] avcodec/mips: [loongson] fix failed case: hevc-conformance-AMP_A_Samsung_* in loongson2k

Shiyou Yin yinshiyou-hf at loongson.cn
Tue Dec 18 13:07:04 EET 2018


>-----Original Message-----
>From: ffmpeg-devel-bounces at ffmpeg.org [mailto:ffmpeg-devel-bounces at ffmpeg.org] On Behalf Of gxw
>Sent: Tuesday, December 18, 2018 9:15 AM
>To: ffmpeg-devel at ffmpeg.org
>Cc: gxw
>Subject: [FFmpeg-devel] [PATCH] avcodec/mips: [loongson] fix failed case:
>hevc-conformance-AMP_A_Samsung_* in loongson2k
>
>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, Modify the corresponding value to 64.
>Fate tests passed.
>---
> libavcodec/mips/hevc_lpf_sao_msa.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/libavcodec/mips/hevc_lpf_sao_msa.c b/libavcodec/mips/hevc_lpf_sao_msa.c
>index 5b5537a..bb883d0 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 * 64 + 64) / sizeof(uint8_t);
>
>     switch (eo) {
>     case 0:
>--
>2.1.0

For this bug is a mips general bug, It's better to remove the key word loongson in the patch name. 




More information about the ffmpeg-devel mailing list