avcodec: don't guess size when encoding video
Instead, let avcodec_encode_video2 allocate the buffer, then
wrap it before handing it off.
Fixes #11605
(cherry picked from commit 03cf55c6f56d9f9d27e46dfea07f15714e4c416c)
Signed-off-by: Tristan Matthews <le.businessman@gmail.com>
Showing
Please register or sign in to comment