avformat/internal: Allow AVFormatInternal.pkt to be used by muxers

It is unused by the generic muxing code.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-09-05 23:18:29 +02:00
parent eadb1cd6f8
commit c2bb054979
2 changed files with 4 additions and 1 deletions

View File

@ -121,7 +121,9 @@ typedef struct FFFormatContext {
AVPacket *parse_pkt;
/**
* Used to hold temporary packets.
* Used to hold temporary packets for the generic demuxing code.
* When muxing, it may be used by muxers to hold packets (even
* permanent ones).
*/
AVPacket *pkt;
/**

View File

@ -1292,6 +1292,7 @@ int av_write_trailer(AVFormatContext *s)
if (s->oformat->priv_class)
av_opt_free(s->priv_data);
av_freep(&s->priv_data);
av_packet_unref(si->pkt);
return ret;
}