mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 05:50:43 +00:00
avformat/mux: Remove unnecessary unreferencing of AVPacket
Since commit c5324d92c5
all custom
interleave_packet() functions always return clean packets (even on
error), so that unreferencing manually can be removed.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
9dd8f7312a
commit
06fdc82337
@ -1067,10 +1067,7 @@ int ff_interleaved_peek(AVFormatContext *s, int stream,
|
||||
static int interleave_packet(AVFormatContext *s, AVPacket *out, AVPacket *in, int flush)
|
||||
{
|
||||
if (s->oformat->interleave_packet) {
|
||||
int ret = s->oformat->interleave_packet(s, out, in, flush);
|
||||
if (in)
|
||||
av_packet_unref(in);
|
||||
return ret;
|
||||
return s->oformat->interleave_packet(s, out, in, flush);
|
||||
} else
|
||||
return ff_interleave_packet_per_dts(s, out, in, flush);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user