[FFmpeg-devel] Compiling some files with DEBUG

Michael Niedermayer michaelni at gmx.at
Wed Aug 20 12:25:47 CEST 2014


On Wed, Aug 20, 2014 at 12:07:10PM +0200, Christophe Gisquet wrote:
> Hi,
> 
> the goal is to have av_dlog output something for the recompiled files.
> How are you doing it? I edit config.mak but when eg rebasing and
> recompiling, this may cause a lot of files to have av_dlog active and
> cause massive spamage.
> 
> If it's not easy, could it be something like:
> rm <the object files you want to debug>
> make <your target> MY_FFMPEG_EXTRA_DEBUG=1
> Then specific targets are used instead.
> 
> Or, simpler, MY_FFMPEG_EXTRA_DEBUG="-DDEBUG=1"
> and have MY_FFMPEG_EXTRA_DEBUG added to CFLAGS
> 
> Of course, building with MY_FFMPEG_EXTRA_DEBUG would be unsupported.

iam probably missing something but why not add
#define DEBUG 1
to the specific file or header for which to enable av_dlog() ?

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Its not that you shouldnt use gotos but rather that you should write
readable code and code with gotos often but not always is less readable
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140820/8a91c01a/attachment.asc>


More information about the ffmpeg-devel mailing list