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

Steve Lhomme git at videolan.org
Thu Jun 18 11:27:44 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jun 17 15:36:50 2020 +0200| [c20a10f06bd4f5469fcbe8616abcd64469efd09a] | committer: Steve Lhomme

contrib: ffmpeg: use -Og in non optimized builds

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c20a10f06bd4f5469fcbe8616abcd64469efd09a
---

 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 187d513aa1..d80956da40 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



More information about the vlc-commits mailing list