On 12/06/15 13:58, Vittorio Giovara wrote:
> From: Michael Niedermayer <[email protected]>
> 
> CC: [email protected]
> Sample-Id: test_bref.mp4
> 
> Signed-off-by: Vittorio Giovara <[email protected]>
> ---
>  libavcodec/x86/h264_weight.asm | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/libavcodec/x86/h264_weight.asm b/libavcodec/x86/h264_weight.asm
> index d1873af..9ad26de 100644
> --- a/libavcodec/x86/h264_weight.asm
> +++ b/libavcodec/x86/h264_weight.asm
> @@ -135,6 +135,16 @@ WEIGHT_FUNC_HALF_MM 8, 8
>      add  off_regd, 1
>      or   off_regd, 1
>      add        r4, 1
> +    cmp        r6d, 128
> +    je .nonnormal
> +    cmp        r5, 128
> +    jne .normal
> +.nonnormal
> +    sar        r5, 1
> +    sar        r6, 1
> +    sar  off_regd, 1
> +    sub        r4, 1
> +.normal
>  %if cpuflag(ssse3)
>      movd       m4, r5d
>      movd       m0, r6d
> 

Probably ok.

lu

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to