summaryrefslogtreecommitdiff
path: root/libavcodec/mp3_header_decompress_bsf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/mp3_header_decompress_bsf.c')
-rw-r--r--libavcodec/mp3_header_decompress_bsf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mp3_header_decompress_bsf.c b/libavcodec/mp3_header_decompress_bsf.c
index 22c1ef0220..294858953c 100644
--- a/libavcodec/mp3_header_decompress_bsf.c
+++ b/libavcodec/mp3_header_decompress_bsf.c
@@ -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);