aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>2012-07-26 14:05:58 +0200
committerMartin Storsjö <martin@martin.st>2012-07-26 22:56:54 +0300
commite49e6b645167df0e15781244a2e1e405abb04bf1 (patch)
treec6b0a9054b3adaea7f9115851760258502e25f6a
parent2357f606876173a25acf3130868e374cc44c5f47 (diff)
downloadffmpeg-e49e6b645167df0e15781244a2e1e405abb04bf1.tar.gz
rtmp: Allow having more unknown data at the end of a chunk size packet without failing
Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r--libavformat/rtmpproto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 183afae4e8..4e5eddb69a 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;
}