2017-01-01 19:40 GMT+08:00 Bodecs Bela <bode...@vivanet.hu>: > Dear All, > > current implementation of finding duplicated segment filenames may fail if > use_localtime_mkdir and use_localtime are in effect and segment_filename > option expression contains subdirectories with date/time specifiers in them. > This patch fixes this false behaviour. > > > thank you, > > Bela > > > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel > >
+static HLSSegment *find_segment_by_filename(HLSSegment *segment, const char *filename) +{ + while (segment) { + if (!strcmp(segment->filename,filename)) + return segment; + segment = segment->next; + } + return (HLSSegment *) NULL; +} + use av_strcasecmp will better。 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel