diff options
author | Andrew Shulgin <andrewshulginua@gmail.com> | 2016-02-27 21:32:53 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-03-01 02:19:23 +0100 |
commit | 1c7e2cf9d33968375ee4025d2279c937e147dae2 (patch) | |
tree | 9462f37f362ffc84899e607dacf50ae3c1269065 | |
parent | 7dabc78ce13e3baa37292f42df2364b4ccd2aa78 (diff) | |
download | ffmpeg-1c7e2cf9d33968375ee4025d2279c937e147dae2.tar.gz |
avformat/rtpdec_h264: Ignore invalid sprop-parameter-sets missing PPS
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavformat/rtpdec_h264.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/rtpdec_h264.c b/libavformat/rtpdec_h264.c index b399be423e..e707d03b87 100644 --- a/libavformat/rtpdec_h264.c +++ b/libavformat/rtpdec_h264.c @@ -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, |