diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-05 19:05:01 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-03 20:50:50 +0200 |
commit | 2ce6a9f8470f75b8c12c7a21ecc724f1140d8c62 (patch) | |
tree | a61c5b089a2f0115c21c59f03c6ae3b4eb855b65 | |
parent | 4fa8daab799572c743ad2e966d89f038f1b4cc4d (diff) | |
download | ffmpeg-2ce6a9f8470f75b8c12c7a21ecc724f1140d8c62.tar.gz |
avformat/mux: Use AVFormatInternal.parse_pkt for temporary packets
The documentation of said packet ("Every user has to ensure that
this packet is blank after using it") perfectly fits how we use said
packet in the generic muxing code. Better than the documentation of pkt.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavformat/mux.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/mux.c b/libavformat/mux.c index d924bb08fc..3d007ec943 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -1188,7 +1188,7 @@ static int write_packets_common(AVFormatContext *s, AVPacket *pkt, int interleav int av_write_frame(AVFormatContext *s, AVPacket *in) { FFFormatContext *const si = ffformatcontext(s); - AVPacket *pkt = si->pkt; + AVPacket *pkt = si->parse_pkt; int ret; if (!in) { @@ -1252,7 +1252,7 @@ int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt) int av_write_trailer(AVFormatContext *s) { FFFormatContext *const si = ffformatcontext(s); - AVPacket *const pkt = si->pkt; + AVPacket *const pkt = si->parse_pkt; int ret1, ret = 0; av_packet_unref(pkt); @@ -1344,7 +1344,7 @@ static int write_uncoded_frame_internal(AVFormatContext *s, int stream_index, AVFrame *frame, int interleaved) { FFFormatContext *const si = ffformatcontext(s); - AVPacket *pkt = si->pkt; + AVPacket *pkt = si->parse_pkt; av_assert0(s->oformat); if (!s->oformat->write_uncoded_frame) { |