diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-03-18 06:29:35 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-03-24 00:31:29 +0100 |
commit | dfad5794fb4f246f6b137da8160dd070482bb9cc (patch) | |
tree | 99a4fb9c2cd999c1c20d7aaa250c106dcbe43866 /libavformat | |
parent | 3903c139a9cb13cf66178d7f262b8bcc9fa4be5a (diff) | |
download | ffmpeg-dfad5794fb4f246f6b137da8160dd070482bb9cc.tar.gz |
avformat/amvenc: Remove unnecessary av_packet_free()
The muxer's deinit function takes care of cleaning up when init fails.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/amvenc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavformat/amvenc.c b/libavformat/amvenc.c index 5d13b618f4..362b474fa6 100644 --- a/libavformat/amvenc.c +++ b/libavformat/amvenc.c @@ -187,7 +187,6 @@ static av_cold int amv_init(AVFormatContext *s) if (!amv->apad) return AVERROR(ENOMEM); if ((ret = av_new_packet(amv->apad, amv->ablock_align)) < 0) { - av_packet_free(&amv->apad); return ret; } @@ -197,7 +196,6 @@ static av_cold int amv_init(AVFormatContext *s) amv->vpad = av_packet_alloc(); if (!amv->vpad) { - av_packet_free(&amv->apad); return AVERROR(ENOMEM); } amv->vpad->stream_index = AMV_STREAM_VIDEO; |