avcodec/utils: free last_pkt_props on avcodec_open2() failure
authorJames Almer <jamrial@gmail.com>
Wed, 3 Mar 2021 21:05:15 +0000 (18:05 -0300)
committerJames Almer <jamrial@gmail.com>
Wed, 3 Mar 2021 21:05:15 +0000 (18:05 -0300)
Regression since b34d1de8dc

Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/utils.c

index bc153c1..b8a8c0a 100644 (file)
@@ -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);