rtsp: Make sure we don't write too many transport entries into a fixed-size array

(cherry picked from commit b90adb0aba)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Martin Storsjö 2015-04-24 12:38:09 +03:00 committed by Michael Niedermayer
parent 3d65a272da
commit 6b7c621839

View File

@ -931,6 +931,8 @@ static void rtsp_parse_transport(RTSPMessageHeader *reply, const char *p)
p++; p++;
reply->nb_transports++; reply->nb_transports++;
if (reply->nb_transports >= RTSP_MAX_TRANSPORTS)
break;
} }
} }