[FFmpeg-devel] [PATCH] avcodec/avpacket: add av_packet_make_writable()

James Almer jamrial at gmail.com
Mon Mar 19 18:02:07 EET 2018


On 3/19/2018 12:45 PM, Paul B Mahol wrote:
> On 3/19/18, James Almer <jamrial at gmail.com> wrote:
>> Useful as well to quickly make a packet reference counted when it
>> isn't already so.
>>
>> Signed-off-by: James Almer <jamrial at gmail.com>
>> ---
>>  libavcodec/avcodec.h  | 11 +++++++++++
>>  libavcodec/avpacket.c | 24 ++++++++++++++++++++++++
>>  2 files changed, 35 insertions(+)
>>
> 
> Will this ever be used?

Probably? It's public API, downstream projects and users decide what
they want to use based on their needs.

And in our tree it can for example be used to simplify the change i made
in a22c6a4796 and e91f0c4f8b, or in bitstream filters to allow changes
to be made directly to the input packet's data.


More information about the ffmpeg-devel mailing list