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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue