// If the currently selected codec is "vaapi" then we need
// to migrate the name to the updated name.
currentCodec:=GetVideoCodec()
ifcurrentCodec!="vaapi"{
return
}
// The updated name for the old vaapi codec is "h264_vaapi_legacy"
// so we update it. This is assuming existing users will be using older
// versions of ffmpeg.
_=SetVideoCodec("h264_vaapi_legacy")
log.Println("An update to the vaapi video codec has been made. It will now be selected as vaapi (Legacy) in your video settings. However, if you are running a version of ffmpeg greater than 5.0 you should update your video codec settings to use the 5.0+ codec setting instead.")