Commit 847052db authored by Martin Storsjö's avatar Martin Storsjö Committed by Michael Niedermayer

rtspdec: Require TCP-interleaved RTP packets to be at least 11 bytes, instead of 12.

(A minimal RTP packet is 12 bytes, but a minimal RTCP packet can be
much smaller, at least as small as 8 bytes.)
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2b2617da
......@@ -204,7 +204,7 @@ redo:
id = buf[0];
len = AV_RB16(buf + 1);
av_dlog(s, "id=%d len=%d\n", id, len);
if (len > buf_size || len < 12)
if (len > buf_size || len < 8)
goto redo;
/* get the data */
ret = ffurl_read_complete(rt->rtsp_hd, buf, len);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment