avconv_opt: Consistently iterate through hwaccels array in all cases