[FFmpeg-devel] [libav-devel] [PATCH] avformat/rmenc: limit packet size

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Mon Mar 2 16:56:34 CET 2015


On 02.03.2015 16:21, Luca Barbato wrote:
> On 02/03/15 16:06, Andreas Cadhalpun wrote:
>> Yes, the rm format can contain larger frames split into slices and
>> packed in multiple packets. But currently the rv10/rv20 encoders always
>> produce a whole frame and the rm muxer always produces one packet per
>> frame.
>
> Then there is the missing_feature logger call and AVERROR(ENOSYS).

OK.

> You could make the constant self-explanatory by doing something like
>
> #define MAX_HEADER_SIZE (7 + 4 + 12)
> #define MAX_PACKET_SIZE (UINT16_MAX - MAX_HEADER_SIZE)

Fine with me. New patch attached.

Best regards,
Andreas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avformat-rm-limit-packet-size.patch
Type: text/x-diff
Size: 1682 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150302/0f84fea5/attachment.bin>


More information about the ffmpeg-devel mailing list