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 20:34:03 +0000 (20:34 +0000)
commit3756b306a259d1376ce90404771c4d0ea7e23162
treeec53cf4b9651283ede44616c49fb50ad8578195a
parentded9931d165544c342795a1b66e4777b6e7daeb0
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>
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
libavformat/rmenc.c