Browse Source

avformat/rtpdec_h264: Ignore invalid sprop-parameter-sets missing PPS

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.1
Andrew Shulgin Michael Niedermayer 9 years ago
parent
commit
1c7e2cf9d3
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavformat/rtpdec_h264.c

+ 4
- 0
libavformat/rtpdec_h264.c View File

@@ -166,6 +166,10 @@ static int sdp_parse_fmtp_config_h264(AVFormatContext *s,
parse_profile_level_id(s, h264_data, value);
} else if (!strcmp(attr, "sprop-parameter-sets")) {
int ret;
if (value[strlen(value) - 1] == ',') {
av_log(s, AV_LOG_WARNING, "Missing PPS in sprop-parameter-sets, ignoring\n");
return 0;
}
codec->extradata_size = 0;
av_freep(&codec->extradata);
ret = ff_h264_parse_sprop_parameter_sets(s, &codec->extradata,


Loading…
Cancel
Save