[FFmpeg-devel] [PATCH] frame: add a time_base field

Lynne dev at lynne.ee
Tue Sep 7 21:38:13 EEST 2021


7 Sept 2021, 19:36 by andreas.rheinhardt at outlook.com:

> Lynne:
>
>> This adds a time_base field (currently unused), analogue to the 
>> AVPacket.time_base field.
>>
>> Patch attached. doc/APIchanges and version bump to be done at push time.
>>
>> +    /**
>>
>> +     * Time base for the timestamps in this frame. May be 0, in which case the
>>
>> +     * time_base from the frame source should be used.
>>
>> +     */
>>
>> +    AVRational time_base;
>>
>> +
>>
>
> Does the pkt_duration count as timestamp or not?
>

Good point, it does if you think of it starting from 0 for every frame :)
Reworded to:
>    /** 
>     * Time base for the timestamps and durations in this frame.
>     * May be 0, in which case the time_base from the frame source should be used.
>     */


More information about the ffmpeg-devel mailing list