avcodec/mp3_header_decompress: don't free the user provided packet on error
It's owned by the caller.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit f18f973469)
This commit is contained in:
parent
c289f4b6c9
commit
a45ba0881c
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ static int mp3_header_decompress(AVBSFContext *ctx, AVPacket *out)
|
|||
goto fail;
|
||||
ret = av_packet_copy_props(out, in);
|
||||
if (ret < 0) {
|
||||
av_packet_free(&out);
|
||||
av_packet_unref(out);
|
||||
goto fail;
|
||||
}
|
||||
memcpy(out->data + frame_size - buf_size, buf, buf_size + AV_INPUT_BUFFER_PADDING_SIZE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue