summaryrefslogtreecommitdiff
path: root/libavdevice/openal-dec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavdevice/openal-dec.c')
-rw-r--r--libavdevice/openal-dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/openal-dec.c b/libavdevice/openal-dec.c
index b552158f76..cab1eb6915 100644
--- a/libavdevice/openal-dec.c
+++ b/libavdevice/openal-dec.c
@@ -204,7 +204,7 @@ static int read_packet(AVFormatContext* ctx, AVPacket *pkt)
fail:
/* Handle failure */
if (pkt->data)
- av_destruct_packet(pkt);
+ av_free_packet(pkt);
if (error_msg)
av_log(ctx, AV_LOG_ERROR, "Error: %s\n", error_msg);
return error;