summaryrefslogtreecommitdiff
path: root/libavdevice
diff options
context:
space:
mode:
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/vfwcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/vfwcap.c b/libavdevice/vfwcap.c
index fea85fc5ae..5fdda4a606 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;
}