rmenc: limit packet size
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Mon, 2 Mar 2015 15:52:26 +0000 (16:52 +0100)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Sun, 8 Mar 2015 19:21:55 +0000 (19:21 +0000)
commit2ef2f60b4f0308d1c871091c9c1a9641d14ec585
treee7e5a619947e0df60ad3753fc82beac07a6db397
parent905172d75c9cfd93c757b09fa4b8afa0e926a13c
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