[FFmpeg-cvslog] avformat/rtpdec_h264: Ignore invalid sprop-parameter-sets missing PPS
Andrew Shulgin
git at videolan.org
Tue Mar 1 02:20:21 CET 2016
ffmpeg | branch: master | Andrew Shulgin <andrewshulginua at gmail.com> | Sat Feb 27 21:32:53 2016 +0200| [1c7e2cf9d33968375ee4025d2279c937e147dae2] | committer: Michael Niedermayer
avformat/rtpdec_h264: Ignore invalid sprop-parameter-sets missing PPS
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1c7e2cf9d33968375ee4025d2279c937e147dae2
---
libavformat/rtpdec_h264.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavformat/rtpdec_h264.c b/libavformat/rtpdec_h264.c
index b399be4..e707d03 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,
More information about the ffmpeg-cvslog
mailing list