Hello, this patch was originally from William Martin, I just adapt it to the newest ffmpeg version. Regards Jonathan