]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/assdec.c
avfilter: Constify all AVFilters
[ffmpeg] / libavformat / assdec.c
index f66b29667320f9aa8b7b31b2b82fca56c8ba610c..8fb9e8e501bc77dc050ea40f05bb4f66b9e14b8e 100644 (file)
@@ -160,6 +160,8 @@ static int ass_read_header(AVFormatContext *s)
     ff_subtitles_queue_finalize(s, &ass->q);
 
 end:
+    if (res < 0)
+        ass_read_close(s);
     av_bprint_finalize(&header, NULL);
     av_bprint_finalize(&line,   NULL);
     av_bprint_finalize(&rline,  NULL);