Commit f18f9734 authored by James Almer's avatar James Almer

avcodec/mp3_header_decompress: don't free the user provided packet on error

It's owned by the caller.
Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent e4eaaf7b
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment