[FFmpeg-devel] [PATCH] Source level debug

Ivan Kalvachev ikalvachev
Tue Mar 4 14:59:18 CET 2008

On Mon, Mar 3, 2008 at 12:29 PM, Benjamin Larsson <banan at ludd.ltu.se> wrote:
> Rich Felker wrote:
>  > [...]
> >
>  >> I would, however, prefer the level being an
>  >> argument to --enable-debug rather than a whole new flag.
>  >>
>  >
>  > I agree. I'd also like it if --disable-debug were the default, but I
>  > doubt others will be happy with that..
>  >
>  > Rich
>  >
>  I prefer that FFmpeg is compiled default with -g. It makes it easy for
>  people to submit bug reports without recompiling FFmpeg. And I also
>  support the use of an argument to --enable-debug instead of the proposed
>  patch. And all compilers might not have -g levels. So I'll try to submit
>  a patch adding argument handling.

Building with debug support also disables some of asm optimization
that are know to run out of registers. Most noticeable are the CABAC

BTW It would be neat feature to have -O0 when -g3, no instruction
reordering and stuff like this...

More information about the ffmpeg-devel mailing list