[FFmpeg-devel] [PATCH] Replace br return with ret

Martin Storsjö martin at martin.st
Tue Aug 8 20:46:57 EEST 2023


On Tue, 8 Aug 2023, Casey Smalley wrote:

> This patch changes the return instruction in the
> tr_32x4 macro from br to ret.
>
> Using ret properly hints that the branch is a
> function return.
>
> On devices that support BTI a landing pad is
> required when branching with br, or the instruction
> can be replaced with a ret.
>
> The change fixes fate-hevc-hdr-vivid-metadata when
> on hardware with BTI support.
>
> Signed-off-by: Casey Smalley <casey.smalley at arm.com>
> ---
> libavcodec/aarch64/hevcdsp_idct_neon.S | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

I already pushed this patch yesterday (but probably forgot to reply to the 
list about it). Thanks for the patch in any case!

// Martin



More information about the ffmpeg-devel mailing list