[FFmpeg-devel] [PATCH] avformat/avienc: Use AV_STRINGIFY for compile time constant

Anton Khirnov anton at khirnov.net
Mon Mar 16 12:25:12 EET 2020


Quoting Nicolas George (2020-03-16 11:03:41)
> Anton Khirnov (12020-03-16):
> > I'd think any decent compiler will already make that transformation.
> 
> Profile, don't speculate. gcc doesn't make that optimization for
> printf().
> 
> And no compiler could do it for av_log() anyway.

Okay, seems it doesn't. I wonder why.

But in any case, optimizing error messages for performance rather than
readability seems rather backwards.

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list