]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/realtextdec.c
lavf: move AVStream.last_in_packet_buffer to AVStreamInternal
[ffmpeg] / libavformat / realtextdec.c
index 204e557aa294816c1f029ff0b7ff7d6ed1d0b7cd..c2316da0ed8d1878df8d85fae698cc8d7502edef 100644 (file)
@@ -123,6 +123,8 @@ static int realtext_read_header(AVFormatContext *s)
 
 end:
     av_bprint_finalize(&buf, NULL);
+    if (res < 0)
+        ff_subtitles_queue_clean(&rt->q);
     return res;
 }