[vlc-devel] [PATCH] contrib: ffmpeg: use -Og in non optimized builds

Steve Lhomme robux4 at ycbcr.xyz
Thu Jun 18 10:33:34 CEST 2020


Tested succesfully here:
https://code.videolan.org/robUx4/vlc/pipelines/19069

On 2020-06-18 10:31, Steve Lhomme wrote:
> It's better than -O0 in some cases, like clang on i686 that gives this error:
> 
>   In file included from libavcodec/h264_cabac.c:46:
> libavcodec/x86/h264_cabac.c:66:9: error: inline assembly requires more registers than available
>          "3:                                     \n\t"
>          ^
> 1 error generated.
> make[1]: *** [ffbuild/common.mak:59: libavcodec/h264_cabac.o] Error 1
> ---
>   contrib/src/ffmpeg/rules.mak | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/contrib/src/ffmpeg/rules.mak b/contrib/src/ffmpeg/rules.mak
> index 187d513aa14f..d80956da40ac 100644
> --- a/contrib/src/ffmpeg/rules.mak
> +++ b/contrib/src/ffmpeg/rules.mak
> @@ -88,7 +88,7 @@ FFMPEGCONF += --enable-thumb
>   endif
>   endif
>   else
> -FFMPEGCONF += --optflags=-O0
> +FFMPEGCONF += --optflags=-Og
>   endif
>   
>   ifdef HAVE_CROSS_COMPILE
> -- 
> 2.26.2
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
> 


More information about the vlc-devel mailing list