mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-28 05:30:34 +00:00
avformat/rtsp: Fix unchecked return value
Reviewed-by: Thomas Volkert <silvo@gmx.net> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
5d0f836f62
commit
aae9f52c4e
@ -174,11 +174,15 @@ static void rtsp_parse_range_npt(const char *p, int64_t *start, int64_t *end)
|
||||
*end = AV_NOPTS_VALUE;
|
||||
|
||||
get_word_sep(buf, sizeof(buf), "-", &p);
|
||||
av_parse_time(start, buf, 1);
|
||||
if (av_parse_time(start, buf, 1) < 0) {
|
||||
av_log(NULL, AV_LOG_ERROR, "Invalid interval start specification '%s'\n", buf);
|
||||
return;
|
||||
}
|
||||
if (*p == '-') {
|
||||
p++;
|
||||
get_word_sep(buf, sizeof(buf), "-", &p);
|
||||
av_parse_time(end, buf, 1);
|
||||
if (av_parse_time(end, buf, 1) < 0)
|
||||
av_log(NULL, AV_LOG_ERROR, "Invalid interval end specification '%s'\n", buf);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user