mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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>
This commit is contained in:
parent
db92efd83e
commit
fdda832603
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user