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>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>