mirror of https://git.ffmpeg.org/ffmpeg.git
rtmp: Allow having more unknown data at the end of a chunk size packet without failing
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
2357f60687
commit
e49e6b6451
|
@ -885,9 +885,9 @@ static int handle_chunk_size(URLContext *s, RTMPPacket *pkt)
|
||||||
RTMPContext *rt = s->priv_data;
|
RTMPContext *rt = s->priv_data;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (pkt->data_size != 4) {
|
if (pkt->data_size < 4) {
|
||||||
av_log(s, AV_LOG_ERROR,
|
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);
|
pkt->data_size);
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue