summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/avpacket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c
index 7196c3165e..b6b4109a2c 100644
--- a/libavcodec/avpacket.c
+++ b/libavcodec/avpacket.c
@@ -215,7 +215,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
return 0;
failed_alloc:
- av_destruct_packet(pkt);
+ av_free_packet(pkt);
return AVERROR(ENOMEM);
}
@@ -237,7 +237,7 @@ int av_copy_packet_side_data(AVPacket *pkt, AVPacket *src)
return 0;
failed_alloc:
- av_destruct_packet(pkt);
+ av_free_packet(pkt);
return AVERROR(ENOMEM);
}