mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-06 14:15:29 +01:00
avpacket: Replace av_free_packet with av_packet_unref
`av_packet_unref` matches the AVFrame ref-counted API and can be used as a drop in replacement. Deprecate `av_free_packet`.
This commit is contained in:
@@ -348,7 +348,7 @@ int ff_read_packet(AVFormatContext *s, AVPacket *pkt);
|
||||
* Interleave a packet per dts in an output media file.
|
||||
*
|
||||
* Packets with pkt->destruct == av_destruct_packet will be freed inside this
|
||||
* function, so they cannot be used after it. Note that calling av_free_packet()
|
||||
* function, so they cannot be used after it. Note that calling av_packet_unref()
|
||||
* on them is still safe.
|
||||
*
|
||||
* @param s media file handle
|
||||
|
||||
Reference in New Issue
Block a user