-----Original Message----- From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of James Almer Sent: Friday, May 31, 2019 10:38 AM To: ffmpeg-devel@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 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".