[FFmpeg-cvslog] avdevice/iec61883: free the private context at the end

James Almer git at videolan.org
Thu Apr 19 05:11:41 EEST 2018


ffmpeg | branch: release/4.0 | James Almer <jamrial at gmail.com> | Wed Apr 18 15:32:10 2018 -0300| [d9e9e97e5f477f6cb42d916f41b436d269cb71c8] | committer: James Almer

avdevice/iec61883: free the private context at the end

Fixes part of ticket #7146.

Signed-off-by: James Almer <jamrial at gmail.com>
(cherry picked from commit 5079e96bcc7aaa9cae82a58397ce986e124028e4)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d9e9e97e5f477f6cb42d916f41b436d269cb71c8
---

 libavdevice/iec61883.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavdevice/iec61883.c b/libavdevice/iec61883.c
index b09929eb56..dcf7553926 100644
--- a/libavdevice/iec61883.c
+++ b/libavdevice/iec61883.c
@@ -463,6 +463,7 @@ static int iec61883_close(AVFormatContext *context)
     } else {
         iec61883_dv_fb_stop(dv->iec61883_dv);
         iec61883_dv_fb_close(dv->iec61883_dv);
+        av_freep(&dv->dv_demux);
     }
     while (dv->queue_first) {
         DVPacket *packet = dv->queue_first;



More information about the ffmpeg-cvslog mailing list