Merge commit '347aa8f72356124ec6b95bf8ebd1faf72db03f8d'
[ffmpeg.git] / libavcodec / mp3_header_decompress_bsf.c
index 22c1ef0..2948589 100644 (file)
@@ -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);