[FFmpeg-cvslog] avformat/hlsenc: remove the cannot reach result
Steven Liu
git at videolan.org
Sun Nov 25 12:36:22 EET 2018
ffmpeg | branch: master | Steven Liu <lq at chinaffmpeg.org> | Sun Nov 25 16:28:56 2018 +0800| [f9ea4931479b4bdf0bb1a873711c6ef1d45bcf5e] | committer: Steven Liu
avformat/hlsenc: remove the cannot reach result
fix CID: 1441166
because the logic have checked the vtt_dirname before
Signed-off-by: Steven Liu <lq at chinaffmpeg.org>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f9ea4931479b4bdf0bb1a873711c6ef1d45bcf5e
---
libavformat/hlsenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 24b678efe0..31ef0237ae 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -507,7 +507,7 @@ static int hls_delete_old_segments(AVFormatContext *s, HLSContext *hls,
}
p = (char *)av_basename(vtt_dirname);
*p = '\0';
- sub_path_size = strlen(segment->sub_filename) + 1 + (vtt_dirname ? strlen(vtt_dirname) : 0);
+ sub_path_size = strlen(segment->sub_filename) + 1 + strlen(vtt_dirname);
sub_path = av_malloc(sub_path_size);
if (!sub_path) {
ret = AVERROR(ENOMEM);
More information about the ffmpeg-cvslog
mailing list