[FFmpeg-cvslog] avcodec/utils: free last_pkt_props on avcodec_open2() failure

James Almer git at videolan.org
Wed Mar 3 23:07:15 EET 2021


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Wed Mar  3 18:05:15 2021 -0300| [77ce903f7ad2619fb3f420fd3e7f7b778dcb7704] | committer: James Almer

avcodec/utils: free last_pkt_props on avcodec_open2() failure

Regression since b34d1de8dc

Signed-off-by: James Almer <jamrial at gmail.com>

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

 libavcodec/utils.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index bc153c1abd..b8a8c0ac2e 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1077,6 +1077,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
 #endif
     av_frame_free(&avci->buffer_frame);
     av_packet_free(&avci->buffer_pkt);
+    av_packet_free(&avci->last_pkt_props);
     av_fifo_freep(&avci->pkt_props);
 
     av_packet_free(&avci->ds.in_pkt);



More information about the ffmpeg-cvslog mailing list