From: Samuel Pitoiset Date: Thu, 26 Jul 2012 12:05:58 +0000 (+0200) Subject: rtmp: Allow having more unknown data at the end of a chunk size packet without failing X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=e49e6b645167df0e15781244a2e1e405abb04bf1;p=ffmpeg rtmp: Allow having more unknown data at the end of a chunk size packet without failing Signed-off-by: Martin Storsjö --- diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index 183afae4e8d..4e5eddb69a4 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -885,9 +885,9 @@ static int handle_chunk_size(URLContext *s, RTMPPacket *pkt) RTMPContext *rt = s->priv_data; int ret; - if (pkt->data_size != 4) { + if (pkt->data_size < 4) { av_log(s, AV_LOG_ERROR, - "Chunk size change packet is not 4 bytes long (%d)\n", + "Too short chunk size change packet (%d)\n", pkt->data_size); return AVERROR_INVALIDDATA; }