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>
pull/369/head
Andreas Rheinhardt 3 years ago
parent eadb1cd6f8
commit c2bb054979
  1. 4
      libavformat/internal.h
  2. 1
      libavformat/mux.c

@ -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;
/**

@ -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;
}

Loading…
Cancel
Save