avformat/rtsp: Check number of streams in sdp_parse_line()
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 25 Jan 2019 20:30:04 +0000 (21:30 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 31 Jan 2019 17:03:35 +0000 (18:03 +0100)
commit953f97979fc292abb3fd166c90bf8fbbf8ef5a73
tree5062627caf4fbfbddb30e4f8e8034cbf055954d1
parente75a73d6294807a8d4d6022280cd6e25dac32990
avformat/rtsp: Check number of streams in sdp_parse_line()

Fixes: OOM

Found-by: Michael Hanselmann <public@hansmi.ch>
Reviewed-by: Michael Hanselmann <public@hansmi.ch>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 497c9b0cce559d43607bbbd679fe42f1d7e9040e)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/rtsp.c