Add missing avsubtitle_free().
authorCarl Hetherington <cth@carlh.net>
Sun, 12 Sep 2021 20:43:38 +0000 (22:43 +0200)
committerCarl Hetherington <cth@carlh.net>
Sun, 12 Sep 2021 23:22:00 +0000 (01:22 +0200)
src/lib/ffmpeg_decoder.cc

index 31fbde7..3202dcd 100644 (file)
@@ -634,6 +634,7 @@ FFmpegDecoder::decode_and_process_subtitle_packet (AVPacket* packet)
 
        if (sub.num_rects <= 0) {
                /* Nothing new in this subtitle */
+               avsubtitle_free (&sub);
                return;
        }