mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-02-07 10:19:54 +00:00
rtsp: Fix unchecked return value
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
0b72a47f55
commit
4e54432164
1 changed files with 6 additions and 2 deletions
|
|
@ -169,11 +169,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…
Add table
Add a link
Reference in a new issue