[FFmpeg-devel] [PATCH v13 1/2] lavc/svt_hevc: add libsvt hevc encoder wrapper

Sun, Jing A jing.a.sun at intel.com
Fri May 31 05:41:33 EEST 2019


-----Original Message-----
From: ffmpeg-devel [mailto:ffmpeg-devel-bounces at ffmpeg.org] On Behalf Of James Almer
Sent: Friday, May 31, 2019 10:38 AM
To: ffmpeg-devel at ffmpeg.org
Subject: Re: [FFmpeg-devel] [PATCH v13 1/2] lavc/svt_hevc: add libsvt hevc encoder wrapper

>No, with the encode2 API you should be using ff_alloc_packet2() instead.
>As i said, the API user may provide it's own buffer in the avpacket passed to avcodec_encode_video2(), which av_new_packet() would ignore and unconditionally allocate a new one.

Thanks for the guidance! I am modifying it and will submit the modification soon.
 
Regards,
Sun, Jing


More information about the ffmpeg-devel mailing list