]> git.sesse.net Git - ffmpeg/blobdiff - libavdevice/openal-dec.c
avformat/flvdec: Use the first index entry to find the first packet if there was...
[ffmpeg] / libavdevice / openal-dec.c
index b552158f76ae7c128213dc735e74b492f12904c5..cab1eb6915cf81374594cdd4aca86f1e68d6b67f 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;