rmenc: limit packet size
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Mon, 2 Mar 2015 15:52:26 +0000 (16:52 +0100)
committerAnton Khirnov <anton@khirnov.net>
Thu, 5 Mar 2015 14:51:05 +0000 (15:51 +0100)
commitbb4edddd9389cc1601db618ed3c1375b62628d04
treef1a90526886f2ea829f895427da542a905ebb532
parent4f2ee9daeedec636fb4fe953a1e0990a7102d5eb
rmenc: limit packet size

The chunk size is limited to UINT16_MAX (written by avio_wb16), so make
sure that the packet size is not too large.

Such large frames need to be split into slices smaller than 64 kB, but
that is currently supported neither by the rv10/rv20 encoders nor the rm
muxer.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavformat/rmenc.c