[FFmpeg-devel] [PATCH 1/2] avutil: Add av_get_time_base{_q, }() and deprecate AV_TIME_BASE{_Q, }

Hendrik Leppkes h.leppkes at gmail.com
Tue Dec 31 21:22:30 CET 2013


On Tue, Dec 31, 2013 at 9:00 PM, Derek Buitenhuis
<derek.buitenhuis at gmail.com> wrote:
> On 12/31/2013 6:24 PM, Michael Niedermayer wrote:
>> for the AVRational returning function the nummerator is 1 always,
>> even if the timebase would be (sanly) changed. The function should
>> possibly instead be a static inline function that returns a 1 in that
>> place to restore the compilers compile time knowledge of half the
>> AVRational
>
> I think making it inline kind of defeats the point of being able
> to change it. I don't think this is going to make even a remote difference
> in 'optimization'. It's a stupid micro-optimization for a function
> which will be rarely called.
>

Similarily, its a stupid abstraction for a value which is never going
to be changed. But hey.

- Hendrik


More information about the ffmpeg-devel mailing list