]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/lrcdec.c
avformat: use av_timecode_make_smpte_tc_string2
[ffmpeg] / libavformat / lrcdec.c
index f4e9a4efa9118f12cba0fe5d17126da9a03bb1e2..46d5e2bc6a219f084f3f194b19118b3e34438d57 100644 (file)
@@ -116,7 +116,7 @@ static int64_t read_line(AVBPrint *buf, AVIOContext *pb)
     return pos;
 }
 
-static int lrc_probe(AVProbeData *p)
+static int lrc_probe(const AVProbeData *p)
 {
     int64_t offset = 0;
     int64_t mm;
@@ -202,6 +202,7 @@ static int lrc_read_header(AVFormatContext *s)
                 sub = ff_subtitles_queue_insert(&lrc->q, line.str + ts_strlength,
                                                 line.len - ts_strlength, 0);
                 if(!sub) {
+                    ff_subtitles_queue_clean(&lrc->q);
                     return AVERROR(ENOMEM);
                 }
                 sub->pos = pos;