openal-dec: replace av_destruct_packet with av_free_packet
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sat, 8 Aug 2015 08:41:31 +0000 (10:41 +0200)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sat, 22 Aug 2015 17:16:13 +0000 (19:16 +0200)
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavdevice/openal-dec.c

index b552158..cab1eb6 100644 (file)
@@ -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;