[FFmpeg-devel] [PATCH v5] avcodec: Add librav1e encoder

Derek Buitenhuis derek.buitenhuis at gmail.com
Sun Nov 10 00:01:18 EET 2019


On 09/11/2019 21:47, James Almer wrote:
> No, this encoder doesn't have an AVCodec->encode2() implementation, so
> it can't be used with the avcodec_encode_video2() API, only with the
> avcodec_send_frame()/avcodec_receive_packet() one, so no need to take
> user provided packets into consideration since those are not an option.
> If you use ff_alloc_packet2(), you'll be first copying the RaPacket to
> some internal buffer, which will then be copied into a ref counted
> buffer before being returned to the user.
> 
> You can safely use av_new_packet() to allocate the packet buffer, as the
> AVPacket passed to AVCodec->receive_packet() will be freshly initialized
> and empty.

How "obvious"...

Anyway, simple fix. Update sent.

- Derek


More information about the ffmpeg-devel mailing list