[FFmpeg-devel] [PATCH 09/10] fftools/ffmpeg, doc/examples/remuxing: Remove redundant av_packet_unref
Andreas Rheinhardt
andreas.rheinhardt at gmail.com
Tue Mar 31 15:37:44 EEST 2020
av_interleaved_write_frame() already returns blank packets.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
doc/examples/remuxing.c | 1 -
fftools/ffmpeg.c | 1 -
2 files changed, 2 deletions(-)
diff --git a/doc/examples/remuxing.c b/doc/examples/remuxing.c
index 9e4d1031b4..13469d55ef 100644
--- a/doc/examples/remuxing.c
+++ b/doc/examples/remuxing.c
@@ -167,7 +167,6 @@ int main(int argc, char **argv)
fprintf(stderr, "Error muxing packet\n");
break;
}
- av_packet_unref(&pkt);
}
av_write_trailer(ofmt_ctx);
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index aaaf241314..c088d134de 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -827,7 +827,6 @@ static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, int u
main_return_code = 1;
close_all_output_streams(ost, MUXER_FINISHED | ENCODER_FINISHED, ENCODER_FINISHED);
}
- av_packet_unref(pkt);
}
static void close_output_stream(OutputStream *ost)
--
2.20.1
More information about the ffmpeg-devel
mailing list