Avoid possible issues with memmapped hardware buffers in
case VDA is not doing a conversion on behalf of the user
and make the code more proper as working example.
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
data, linesize, vda->tmp_frame->format,
frame->width, frame->height);
+ CVPixelBufferUnlockBaseAddress(pixbuf, kCVPixelBufferLock_ReadOnly);
+
ret = av_frame_copy_props(vda->tmp_frame, frame);
if (ret < 0)
return ret;