rtpproto: Check the size before reading buf[1]
authorMartin Storsjö <martin@martin.st>
Wed, 31 Jul 2013 09:45:33 +0000 (12:45 +0300)
committerMartin Storsjö <martin@martin.st>
Thu, 1 Aug 2013 06:41:21 +0000 (09:41 +0300)
commit1851e1d05d06f6ef3436c667e4354da0f407b226
tree54e908e5908d78820f677acdcb107e7b5c6f9850
parent7748dd41be3d6dd6300f14263586af4ee104ead2
rtpproto: Check the size before reading buf[1]

I doubt that anyone ever would try to send a 1 byte packet
via the RTP protocol, but check just in case - it shouldn't
crash at least.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtpproto.c