From a6a27fede94efe48aad1dcc9d5e000d2de71c7b2 Mon Sep 17 00:00:00 2001
From: Diego Biurrun <diego@biurrun.de>
Date: Thu, 14 Aug 2014 20:56:32 +0200
Subject: [PATCH] vfwcap: Replace deprecated av_destruct_packet() by
 av_free_packet()

---
 libavdevice/vfwcap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavdevice/vfwcap.c b/libavdevice/vfwcap.c
index fea85fc5aee..5fdda4a606c 100644
--- a/libavdevice/vfwcap.c
+++ b/libavdevice/vfwcap.c
@@ -230,7 +230,7 @@ static int vfw_read_close(AVFormatContext *s)
     pktl = ctx->pktl;
     while (pktl) {
         AVPacketList *next = pktl->next;
-        av_destruct_packet(&pktl->pkt);
+        av_free_packet(&pktl->pkt);
         av_free(pktl);
         pktl = next;
     }
-- 
GitLab