func isValidCombo(codecName string, format Container, supportedVideoCodecs []string) bool {
	supportMKV := isValidCodec(Mkv, supportedVideoCodecs)
	supportHEVC := isValidCodec(Hevc, supportedVideoCodecs)

	switch codecName {
	case H264:
		if supportMKV {
			return isValidForContainer(format, validForH264Mkv)
		}
		return isValidForContainer(format, validForH264)
	case H265:
		if supportMKV {
			return isValidForContainer(format, validForH265Mkv)
		}
		return isValidForContainer(format, validForH265)
	case Vp8:
		return isValidForContainer(format, validForVp8)
	case Vp9:
		if supportMKV {
			return isValidForContainer(format, validForVp9Mkv)
		}
		return isValidForContainer(format, validForVp9)
	case Hevc:
		if supportHEVC {
			if supportMKV {
				return isValidForContainer(format, validForHevcMkv)
			}
			return isValidForContainer(format, validForHevc)
		}
	}
	return false
}
// isValidCombo checks if a codec/container combination is valid.
// Returns true on validity, false otherwise
isValidCombo checks if a codec/container combination is valid.
Returns true on validity, false otherwise
// isValidCombo checks if a codec / container combination is valid . // Returns true on validity false otherwise
func isValidCombo(codecName string, format Container, supportedVideoCodecs []string) bool {
	supportMKV := isValidCodec(Mkv, supportedVideoCodecs)
	supportHEVC := isValidCodec(Hevc, supportedVideoCodecs)
	switch codecName {
	case H264:
		if supportMKV {
			return isValidForContainer(format, validForH264Mkv)
		}
		return isValidForContainer(format, validForH264)
	case H265:
		if supportMKV {
			return isValidForContainer(format, validForH265Mkv)
		}
		return isValidForContainer(format, validForH265)
	case Vp8:
		return isValidForContainer(format, validForVp8)
	case Vp9:
		if supportMKV {
			return isValidForContainer(format, validForVp9Mkv)
		}
		return isValidForContainer(format, validForVp9)
	case Hevc:
		if supportHEVC {
			if supportMKV {
				return isValidForContainer(format, validForHevcMkv)
			}
			return isValidForContainer(format, validForHevc)
		}
	}
	return false
}
func isValidCombo ( codecName string , format Container , supportedVideoCodecs [ ] string ) bool { supportMKV := isValidCodec ( Mkv , supportedVideoCodecs ) supportHEVC := isValidCodec ( Hevc , supportedVideoCodecs ) switch codecName { case H264 : if supportMKV { return isValidForContainer ( format , validForH264Mkv ) } return isValidForContainer ( format , validForH264 ) case H265 : if supportMKV { return isValidForContainer ( format , validForH265Mkv ) } return isValidForContainer ( format , validForH265 ) case Vp8 : return isValidForContainer ( format , validForVp8 ) case Vp9 : if supportMKV { return isValidForContainer ( format , validForVp9Mkv ) } return isValidForContainer ( format , validForVp9 ) case Hevc : if supportHEVC { if supportMKV { return isValidForContainer ( format , validForHevcMkv ) } return isValidForContainer ( format , validForHevc ) } } return false }
isValidCombo checks if a codec/container combination is valid.
isValidCombo checks if a codec / container combination is valid .