[FFmpeg-devel] [PATCH] avpacket: RFC for ABI bump additions

Lynne dev at lynne.ee
Sat Jan 23 21:10:46 EET 2021


This is an RFC about the upcoming additions to the AVPacket structure
(whose size is still part of the ABI, so we need to plan for any changes).

The current RFC patch adds 3 fields:
    - "void *opaque;" for the user to use as they wish, same as AVFrame.opaque
    - "void *opaque_ref;" for more permanent and propagating user data, same as AVFrame.opaque_ref
    - "AVRational time_base;" which will be set to indicate the time base of the packet's timestamps

Some devs (JEEB) wanted reception timestamps and original, overflowed timestamps for MPEG-TS.
I'd be willing to add a reception timestamp as long as we add an additional time_base field
and make it independent of the packet's pts field, since those timestamps are usually on
highly precise system clock time bases, and reducing their precision would be undesirable.

I'm not sure about overflowed original timestamps or how they would help.
Perhaps we should introduce an AVBufferRef *internal_ref like with AVFrame to
store such single library-only data?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avpacket-RFC-for-ABI-bump-additions.patch
Type: text/x-patch
Size: 2664 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210123/e56ba8c0/attachment.bin>


More information about the ffmpeg-devel mailing list