mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-23 04:24:35 +02:00
avformat/rtpdec_h264: Fix heap-buffer-overflow
Fixes: rtp_sdp/poc.sdp Found-by: Bingchang <l.bing.chang.bc@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
eca2a49716
commit
c42a1388a6
@ -166,7 +166,7 @@ static int sdp_parse_fmtp_config_h264(AVFormatContext *s,
|
|||||||
parse_profile_level_id(s, h264_data, value);
|
parse_profile_level_id(s, h264_data, value);
|
||||||
} else if (!strcmp(attr, "sprop-parameter-sets")) {
|
} else if (!strcmp(attr, "sprop-parameter-sets")) {
|
||||||
int ret;
|
int ret;
|
||||||
if (value[strlen(value) - 1] == ',') {
|
if (*value == 0 || value[strlen(value) - 1] == ',') {
|
||||||
av_log(s, AV_LOG_WARNING, "Missing PPS in sprop-parameter-sets, ignoring\n");
|
av_log(s, AV_LOG_WARNING, "Missing PPS in sprop-parameter-sets, ignoring\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user