From bd353297eacaa18f9bd866e82d43caff29808902 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Fri, 27 Feb 2026 15:11:51 +0100 Subject: [PATCH] from_lavc_vid_conv.c: mark one conversion as 02 (faster) --- src/libavcodec/from_lavc_vid_conv.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/libavcodec/from_lavc_vid_conv.c b/src/libavcodec/from_lavc_vid_conv.c index 20bf425e1..0eb50a006 100644 --- a/src/libavcodec/from_lavc_vid_conv.c +++ b/src/libavcodec/from_lavc_vid_conv.c @@ -330,6 +330,11 @@ yuv444p16le_to_r10k(struct av_conv_data d) } #if defined __GNUC__ +// actually faster with -02 with GCC +#if !defined __clang__ +#pragma GCC push_options +#pragma GCC optimize("O2") +#endif static inline void yuv444pXXle_to_r12l(struct av_conv_data d, int depth) __attribute__((always_inline)); #endif @@ -420,6 +425,9 @@ yuv444p12le_to_r12l(struct av_conv_data d) { yuv444pXXle_to_r12l(d, DEPTH12); } +#if defined __GNUC__ && !defined __clang__ +#pragma GCC pop_options +#endif static void yuv444p16le_to_r12l(struct av_conv_data d)