https://github.com/FFmpeg/FFmpeg/blob/master/ffmpeg_vaapi.c#L305 i imagine it should test with ctx->output_format, not ctx->decode_format which is always AV_PIX_FMT_NONE due to previous assignment ... Regards,