Mark conditionally used variable as av_unused, fixes the warning: