aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/hlsenc.c
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2020-06-22 22:04:36 +0800
committerLimin Wang <lance.lmwang@gmail.com>2020-07-02 21:12:37 +0800
commitfdda832603c7f027b3d0541289182ad221c1439c (patch)
tree7250eafc425190f2593fca1cae48473b1581fa32 /libavformat/hlsenc.c
parentdb92efd83e6128ebc301ce615eda137c132ac290 (diff)
downloadffmpeg-fdda832603c7f027b3d0541289182ad221c1439c.tar.gz
avformat/hlsenc: fix av_bprint_finalize() usage
Don't need to do double check by the description of the API. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavformat/hlsenc.c')
-rw-r--r--libavformat/hlsenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index f7a4f30c47..a34da2f515 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -398,7 +398,7 @@ static int replace_str_data_in_filename(char **s, const char *filename, char pla
av_bprint_finalize(&buf, NULL);
return AVERROR(ENOMEM);
}
- if ((ret = av_bprint_finalize(&buf, &new_filename)) < 0 || !new_filename)
+ if ((ret = av_bprint_finalize(&buf, &new_filename)) < 0)
return ret;
*s = new_filename;
return found_count;
@@ -448,7 +448,7 @@ static int replace_int_data_in_filename(char **s, const char *filename, char pla
av_bprint_finalize(&buf, NULL);
return AVERROR(ENOMEM);
}
- if ((ret = av_bprint_finalize(&buf, &new_filename)) < 0 || !new_filename)
+ if ((ret = av_bprint_finalize(&buf, &new_filename)) < 0)
return ret;
*s = new_filename;
return found_count;